summaryrefslogtreecommitdiffstats
path: root/win/C#/Parsing/Parser.cs
diff options
context:
space:
mode:
Diffstat (limited to 'win/C#/Parsing/Parser.cs')
-rw-r--r--win/C#/Parsing/Parser.cs9
1 files changed, 2 insertions, 7 deletions
diff --git a/win/C#/Parsing/Parser.cs b/win/C#/Parsing/Parser.cs
index 799e8a303..7e00ddc2b 100644
--- a/win/C#/Parsing/Parser.cs
+++ b/win/C#/Parsing/Parser.cs
@@ -72,13 +72,10 @@ namespace Handbrake.Parsing
this.m_buffer += tmp;
Match m = Regex.Match(tmp, "^Scanning title ([0-9]*) of ([0-9]*)");
if (OnReadLine != null)
- {
OnReadLine(this, tmp);
- }
+
if (m.Success && OnScanProgress != null)
- {
OnScanProgress(this, int.Parse(m.Groups[1].Value), int.Parse(m.Groups[2].Value));
- }
}
catch (Exception exc)
{
@@ -92,12 +89,10 @@ namespace Handbrake.Parsing
string tmp = base.ReadToEnd();
try
{
-
this.m_buffer += tmp;
if (OnReadToEnd != null)
- {
OnReadToEnd(this, tmp);
- }
+
}
catch (Exception exc)
{