summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorsr55 <[email protected]>2010-04-17 11:56:12 +0000
committersr55 <[email protected]>2010-04-17 11:56:12 +0000
commit39c24561af3b8dd56ad689567af834faf2a6a3da (patch)
treeeba26b2dab88b88d004ad97a492d452f43d42e6c /win
parent6dbe0e7a3e30be89f4bd61c9f85882abb5fef957 (diff)
WinGui:
- Fix in-gui status updates. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3234 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win')
-rw-r--r--win/C#/Services/Encode.cs7
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