diff options
author | sr55 <[email protected]> | 2014-10-04 11:48:38 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2014-10-04 11:48:38 +0000 |
commit | 198242916b6154a6948b8ce959ceca6846135dd3 (patch) | |
tree | b542aeda71a3fd12d5b57d3971158761e5ce83cc | |
parent | 7265c862c042e81f0b86e7df8b58ee69d9cb9e83 (diff) |
WinGui: Fix an issue with Audio Track Names and ,
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6431 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r-- | win/CS/HandBrake.ApplicationServices/Utilities/QueryGeneratorUtility.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Utilities/QueryGeneratorUtility.cs b/win/CS/HandBrake.ApplicationServices/Utilities/QueryGeneratorUtility.cs index 513f1b358..2f6c4fa4e 100644 --- a/win/CS/HandBrake.ApplicationServices/Utilities/QueryGeneratorUtility.cs +++ b/win/CS/HandBrake.ApplicationServices/Utilities/QueryGeneratorUtility.cs @@ -711,13 +711,15 @@ namespace HandBrake.ApplicationServices.Utilities foundTrackName = true;
}
+ string fixedTrackName = trackName != null ? trackName.Replace(",", "\\,") : string.Empty;
+
if (firstLoop)
{
- audioItems = string.IsNullOrEmpty(trackName) ? "\\\"\\\"" : string.Format("\\\"{0}\\\"", trackName.Trim());
+ audioItems = string.IsNullOrEmpty(fixedTrackName) ? "\\\"\\\"" : string.Format("\\\"{0}\\\"", fixedTrackName.Trim());
firstLoop = false;
}
else
- audioItems += "," + (string.IsNullOrEmpty(trackName) ? "\\\"\\\"" : string.Format("\\\"{0}\\\"", trackName.Trim()));
+ audioItems += "," + (string.IsNullOrEmpty(fixedTrackName) ? "\\\"\\\"" : string.Format("\\\"{0}\\\"", fixedTrackName.Trim()));
}
if (foundTrackName)
query += string.Format(" --aname={0}", audioItems);
|