]> granicus.if.org Git - handbrake/commitdiff
CLI: fix csv file chapter import
authorJohn Stebbins <jstebbins.hb@gmail.com>
Thu, 29 Dec 2016 16:16:17 +0000 (09:16 -0700)
committerJohn Stebbins <jstebbins.hb@gmail.com>
Thu, 29 Dec 2016 16:16:17 +0000 (09:16 -0700)
test/test.c

index ae7f8bfa3505e1799802c1ac0caa176bfb201e15..b207e3c37662601d889e3a3415f7dd6bb789cd33 100644 (file)
@@ -3989,12 +3989,12 @@ PrepareJob(hb_handle_t *h, hb_title_t *title, hb_dict_t *preset_dict)
         return NULL;
     }
 
-    if (hb_value_get_bool(hb_dict_get(job_dict, "ChapterMarkers")))
+    hb_dict_t *dest_dict = hb_dict_get(job_dict, "Destination");
+    if (hb_value_get_bool(hb_dict_get(dest_dict, "ChapterMarkers")))
     {
         write_chapter_names(job_dict, marker_file);
     }
 
-    hb_dict_t *dest_dict = hb_dict_get(job_dict, "Destination");
     hb_dict_set(dest_dict, "File", hb_value_string(output));
 
     // Now that the job is initialized, we need to find out