diff options
author | John Stebbins <[email protected]> | 2016-06-11 16:03:33 -0600 |
---|---|---|
committer | John Stebbins <[email protected]> | 2016-06-11 16:03:33 -0600 |
commit | 44a359d7d68a9c716df2927781ba144c22d0d285 (patch) | |
tree | 6200c78efedbd24e9a2f7caff7845e01ec672483 /libhb/hb.c | |
parent | 175f485880cccb23d28b76646bf6ca92e6862248 (diff) |
subtitle scan: tighten up scan pass dropping logic
Also drop the scan pass if there is only one subtitle track and "force"
is not specified. When scanning for foreign audio subtitles without
force, you need at least 2 tracks in order for the 10% selection logic
to apply.
Diffstat (limited to 'libhb/hb.c')
-rw-r--r-- | libhb/hb.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libhb/hb.c b/libhb/hb.c index 1850cc1fb..abcfa72eb 100644 --- a/libhb/hb.c +++ b/libhb/hb.c @@ -1457,7 +1457,9 @@ static void hb_add_internal( hb_handle_t * h, hb_job_t * job, hb_list_t *list_pa hb_subtitle_copy( subtitle ) ); } } - if (hb_list_count(job_copy->list_subtitle) == 0) + int count = hb_list_count(job_copy->list_subtitle); + if (count == 0 || + (count == 1 && !job_copy->select_subtitle_config.force)) { hb_log("Skipping subtitle scan. No suitable subtitle tracks."); hb_job_close(&job_copy); |