From 66c6d3eba3aa564ef75986dec6dd090b5289b431 Mon Sep 17 00:00:00 2001 From: midzer Date: Wed, 19 Oct 2016 20:59:00 +0200 Subject: [PATCH] libhb: Remove redundant check in preset.c. --- libhb/preset.c | 7 +++---- 1 file 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 -- 2.40.0