diff options
Diffstat (limited to 'win/C#')
-rw-r--r-- | win/C#/Functions/Main.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/win/C#/Functions/Main.cs b/win/C#/Functions/Main.cs index 1fba55ebf..6374d7407 100644 --- a/win/C#/Functions/Main.cs +++ b/win/C#/Functions/Main.cs @@ -354,7 +354,9 @@ namespace Handbrake.Functions while (!cliProcess.HasExited)
{
line = stdOutput.ReadLine();
- Match m = Regex.Match(line, @"HandBrake [0-9\.]*svn[0-9]*[M]* \([0-9]*\)");
+ if (line == null) line = "";
+ Match m = Regex.Match(line, @"HandBrake ([0-9\.]*)*(svn[0-9]*[M]*)* \([0-9]*\)");
+
if (m.Success != false)
{
string data = line.Replace("(", "").Replace(")", "").Replace("HandBrake ", "");
|