summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrake.ApplicationServices
diff options
context:
space:
mode:
Diffstat (limited to 'win/CS/HandBrake.ApplicationServices')
-rw-r--r--win/CS/HandBrake.ApplicationServices/Utilities/QueryGeneratorUtility.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Utilities/QueryGeneratorUtility.cs b/win/CS/HandBrake.ApplicationServices/Utilities/QueryGeneratorUtility.cs
index f883256e3..229eb7037 100644
--- a/win/CS/HandBrake.ApplicationServices/Utilities/QueryGeneratorUtility.cs
+++ b/win/CS/HandBrake.ApplicationServices/Utilities/QueryGeneratorUtility.cs
@@ -820,7 +820,7 @@ namespace HandBrake.ApplicationServices.Utilities
if (item.Default)
srtDefault = srtCount.ToString();
- itemToAdd = item.SrtPath;
+ itemToAdd = item.SrtPath.Replace("\\", "\\\\").Replace(",", "\\,");
srtFile += srtFile == string.Empty ? itemToAdd : "," + itemToAdd;
itemToAdd = item.SrtOffset.ToString();
@@ -872,7 +872,7 @@ namespace HandBrake.ApplicationServices.Utilities
if (srtFile != string.Empty) // SRTs
{
- query += " --srt-file " + "\"" + srtFile.Replace("\\", "\\\\") + "\"";
+ query += " --srt-file " + "\"" + srtFile + "\"";
if (srtCodeset != string.Empty)
query += " --srt-codeset " + srtCodeset;