diff options
-rw-r--r-- | win/C#/Services/Encode.cs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/win/C#/Services/Encode.cs b/win/C#/Services/Encode.cs index d73a4a6ec..61dd51123 100644 --- a/win/C#/Services/Encode.cs +++ b/win/C#/Services/Encode.cs @@ -148,9 +148,6 @@ namespace Handbrake.Services this.job = encJob;
try
{
- if (this.EncodeStarted != null)
- this.EncodeStarted(this, new EventArgs());
-
IsEncoding = true;
ResetLogReader();
@@ -177,6 +174,10 @@ namespace Handbrake.Services this.HbProcess = Process.Start(cliStart);
this.ProcessID = Main.GetCliProcess(before);
+ // Fire the Encode Started Event
+ if (this.EncodeStarted != null)
+ this.EncodeStarted(this, new EventArgs());
+
if (this.HbProcess != null)
this.ProcessHandle = this.HbProcess.MainWindowHandle; // Set the process Handle
|