diff options
-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);
|