]> granicus.if.org Git - handbrake/commitdiff
WinGui: SRT Subtitles Import now correctly escapes ,
authorsr55 <sr55.hb@outlook.com>
Sat, 1 Nov 2014 21:37:14 +0000 (21:37 +0000)
committersr55 <sr55.hb@outlook.com>
Sat, 1 Nov 2014 21:37:14 +0000 (21:37 +0000)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6494 b64f7644-9d1e-0410-96f1-a4d463321fa5

win/CS/HandBrake.ApplicationServices/Utilities/QueryGeneratorUtility.cs

index f883256e39c909534e046e39b4758697efe212cf..229eb7037ce5f806f67841862280e34988a71a1f 100644 (file)
@@ -820,7 +820,7 @@ namespace HandBrake.ApplicationServices.Utilities
                         if (item.Default)\r
                             srtDefault = srtCount.ToString();\r
 \r
-                        itemToAdd = item.SrtPath;\r
+                        itemToAdd = item.SrtPath.Replace("\\", "\\\\").Replace(",", "\\,");\r
                         srtFile += srtFile == string.Empty ? itemToAdd : "," + itemToAdd;\r
 \r
                         itemToAdd = item.SrtOffset.ToString();\r
@@ -872,7 +872,7 @@ namespace HandBrake.ApplicationServices.Utilities
 \r
                 if (srtFile != string.Empty) // SRTs\r
                 {\r
-                    query += " --srt-file " + "\"" + srtFile.Replace("\\", "\\\\") + "\"";\r
+                    query += " --srt-file " + "\"" + srtFile + "\"";\r
 \r
                     if (srtCodeset != string.Empty)\r
                         query += " --srt-codeset " + srtCodeset;\r