diff options
author | midzer <[email protected]> | 2016-10-19 20:59:00 +0200 |
---|---|---|
committer | Bradley Sepos <[email protected]> | 2016-12-14 11:29:32 -0500 |
commit | 66c6d3eba3aa564ef75986dec6dd090b5289b431 (patch) | |
tree | 652f50a61347e76ce6f28ac0db5d731e28ddd686 /libhb/preset.c | |
parent | 87872280813589805b91f08385ade60363f53aad (diff) |
libhb: Remove redundant check in preset.c.
Diffstat (limited to 'libhb/preset.c')
-rw-r--r-- | libhb/preset.c | 7 |
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 |