summaryrefslogtreecommitdiffstats
path: root/win/C#/frmMain.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2009-01-03 22:46:52 +0000
committersr55 <[email protected]>2009-01-03 22:46:52 +0000
commit7c7ee204435c13146895355b545d313c1cc7a707 (patch)
tree013c6af3fb9801ddfc112f7561318b3e65c64430 /win/C#/frmMain.cs
parent0b30a330672919074117c371de7d1fee4ff5cbbc (diff)
WinGui:
- Fixes some bugs/issues with the Queue Windows / Main Window Queue/Encoding tie-in git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2057 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/frmMain.cs')
-rw-r--r--win/C#/frmMain.cs10
1 files changed, 8 insertions, 2 deletions
diff --git a/win/C#/frmMain.cs b/win/C#/frmMain.cs
index 5110b0b41..418a15f69 100644
--- a/win/C#/frmMain.cs
+++ b/win/C#/frmMain.cs
@@ -25,7 +25,7 @@ namespace Handbrake
private delegate void UpdateWindowHandler();
Functions.Main hb_common_func = new Functions.Main();
Functions.Encode encodeHandler = new Functions.Encode();
- Queue.Queue encodeQueue = new Queue.Queue();
+ Queue.QueueHandler encodeQueue = new Queue.QueueHandler();
Presets.PresetsHandler presetHandler = new Presets.PresetsHandler();
Parsing.Title selectedTitle;
Parsing.DVD thisDVD;
@@ -503,7 +503,13 @@ namespace Handbrake
if (result == DialogResult.Yes)
{
- queueWindow.frmMain_cancelEncode();
+ Process[] aProc = Process.GetProcessesByName("HandBrakeCLI");
+ Process HandBrakeCLI;
+ if (aProc.Length > 0)
+ {
+ HandBrakeCLI = aProc[0];
+ HandBrakeCLI.Kill();
+ }
if (!queueWindow.isEncoding())
setEncodeFinished();
}