From e98777357434c0c497e6daecb7bda3b4794fa120 Mon Sep 17 00:00:00 2001 From: jstebbins Date: Sun, 19 Jul 2009 18:38:28 +0000 Subject: 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 --- gtk/src/callbacks.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gtk/src/callbacks.c') 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++) { -- cgit v1.2.3