summaryrefslogtreecommitdiffstats
path: root/gtk
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2009-07-18 17:18:51 +0000
committerjstebbins <[email protected]>2009-07-18 17:18:51 +0000
commit7497e03a099e8c395e322dd5b9f504e14376317d (patch)
tree2655a1e257dc2e267a0c89bafd43c117ea94602d /gtk
parentde8a889c21bfc2d7c9faa957d4b95450247c9628 (diff)
LinGui: fix a problem with encode cancel logic
declining to cancel the encode would permit the current encode to continue, but then the next encode would not start. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2713 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk')
-rw-r--r--gtk/src/queuehandler.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/src/queuehandler.c b/gtk/src/queuehandler.c
index fbe7cce98..fe3f2db87 100644
--- a/gtk/src/queuehandler.c
+++ b/gtk/src/queuehandler.c
@@ -1196,8 +1196,8 @@ queue_start_clicked_cb(GtkWidget *xwidget, signal_user_data_t *ud)
state = ghb_get_queue_state();
if (state & (GHB_STATE_WORKING | GHB_STATE_SCANNING | GHB_STATE_MUXING))
{
- ud->cancel_encode = TRUE;
- ghb_cancel_encode(NULL);
+ if (ghb_cancel_encode(NULL))
+ ud->cancel_encode = TRUE;
return;
}