From da3c7963a3ad43cfec616714bbc4a68671350c74 Mon Sep 17 00:00:00 2001 From: John Stebbins Date: Thu, 29 Dec 2016 09:16:17 -0700 Subject: [PATCH] CLI: fix csv file chapter import --- test/test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test.c b/test/test.c index ae7f8bfa3..b207e3c37 100644 --- a/test/test.c +++ b/test/test.c @@ -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 -- 2.40.0