summaryrefslogtreecommitdiffstats
path: root/gtk
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2009-07-19 18:38:28 +0000
committerjstebbins <[email protected]>2009-07-19 18:38:28 +0000
commite98777357434c0c497e6daecb7bda3b4794fa120 (patch)
treeaa0b0498184522cfdbd9cab424e02b74c59c44ac /gtk
parentfecbcdf52adf696403d3cbaa3714d8ac992e1cd5 (diff)
LinGui: fix problem with trying to access non-existent hash key "subtitle_scan"
an invalid job sequence_id caused an attempt to access a value that hadn't been set yet. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2716 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk')
-rw-r--r--gtk/src/callbacks.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/src/callbacks.c b/gtk/src/callbacks.c
index cfd12dac6..63257eed6 100644
--- a/gtk/src/callbacks.c
+++ b/gtk/src/callbacks.c
@@ -2175,6 +2175,9 @@ find_queue_job(GValue *queue, gint unique_id, GValue **job)
*job = NULL;
g_debug("find_queue_job");
+ if (unique_id == 0) // Invalid Id
+ return -1;
+
count = ghb_array_len(queue);
for (ii = 0; ii < count; ii++)
{