From 39c24561af3b8dd56ad689567af834faf2a6a3da Mon Sep 17 00:00:00 2001 From: sr55 Date: Sat, 17 Apr 2010 11:56:12 +0000 Subject: WinGui: - Fix in-gui status updates. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3234 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- win/C#/Services/Encode.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'win/C#/Services') 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 -- cgit v1.2.3