OSDN Git Service

WinGui:
authorsr55 <sr55@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Tue, 24 Nov 2009 21:46:24 +0000 (21:46 +0000)
committersr55 <sr55@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Tue, 24 Nov 2009 21:46:24 +0000 (21:46 +0000)
- First fix for 0.9.4 :  Fix a stupid regex bug

git-svn-id: svn://localhost/HandBrake/trunk@2970 b64f7644-9d1e-0410-96f1-a4d463321fa5

win/C#/Functions/Main.cs

index 6f8efaa..250813d 100644 (file)
@@ -207,7 +207,7 @@ namespace Handbrake.Functions
             Properties.Settings.Default.cliLastModified = lastModified;\r
             \r
             Process cliProcess = new Process();\r
-            ProcessStartInfo handBrakeCLI = new ProcessStartInfo("HandBrakeCLI.exe", " -u")\r
+            ProcessStartInfo handBrakeCLI = new ProcessStartInfo("HandBrakeCLI.exe", " -u -v0")\r
                                                 {\r
                                                     UseShellExecute = false,\r
                                                     RedirectStandardError = true,\r
@@ -225,7 +225,7 @@ namespace Handbrake.Functions
                 while (!cliProcess.HasExited)\r
                 {\r
                     line = stdOutput.ReadLine() ?? "";\r
-                    Match m = Regex.Match(line, @"HandBrake ([0-9.]*)(svn[0-9M]*) \([0-9]*\)");\r
+                    Match m = Regex.Match(line, @"HandBrake ([svnM0-9.]*) \([0-9]*\)");\r
                     Match platform = Regex.Match(line, @"- ([A-Za-z0-9\s ]*) -");\r
 \r
                     if (m.Success)\r