OSDN Git Service

LinGui: fix crash when subtitle list has an invalid subtitle
authorjstebbins <jstebbins@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Tue, 6 Apr 2010 23:22:30 +0000 (23:22 +0000)
committerjstebbins <jstebbins@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Tue, 6 Apr 2010 23:22:30 +0000 (23:22 +0000)
git-svn-id: svn://localhost/HandBrake/trunk@3203 b64f7644-9d1e-0410-96f1-a4d463321fa5

gtk/src/hb-backend.c

index dbcb437..78fab8c 100644 (file)
@@ -4642,9 +4642,9 @@ add_job(hb_handle_t *h, GValue *js, gint unique_id, gint titleindex)
                hb_subtitle_config_t sub_config;
 
                        subt = (hb_subtitle_t *)hb_list_item(title->list_subtitle, subtitle);
-                       sub_config = subt->config;
                        if (subt != NULL)
                        {
+                               sub_config = subt->config;
                                if (!burned && job->mux == HB_MUX_MKV && 
                                        subt->format == PICTURESUB)
                                {