summaryrefslogtreecommitdiffstats
path: root/gtk
diff options
context:
space:
mode:
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;
}