summaryrefslogtreecommitdiffstats
path: root/libhb/preset.c
diff options
context:
space:
mode:
Diffstat (limited to 'libhb/preset.c')
-rw-r--r--libhb/preset.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/libhb/preset.c b/libhb/preset.c
index 5eb18b8ce..e2dc02057 100644
--- a/libhb/preset.c
+++ b/libhb/preset.c
@@ -1673,10 +1673,9 @@ int hb_preset_apply_title(hb_handle_t *h, int title_index,
hb_title_t *title = hb_find_title_by_index(h, title_index);
if (title == NULL)
return -1;
-
- int chapters;
- chapters = hb_value_get_bool(hb_dict_get(preset, "ChapterMarkers"));
- if (title != NULL && hb_list_count(title->list_chapter) <= 1)
+
+ int chapters = hb_value_get_bool(hb_dict_get(preset, "ChapterMarkers"));
+ if (hb_list_count(title->list_chapter) <= 1)
chapters = 0;
// Set "Destination" settings in job