From c595d44bb21b9148a3a9e5ababc57bba5d05e5d7 Mon Sep 17 00:00:00 2001 From: Rodeo Date: Mon, 14 May 2012 16:27:23 +0000 Subject: Fix a couple Foreign Audio Search issues causes by the changes introduced in revision 4622: - hang if forced-only were not set - Foreign Audio Search would select a subtitle track containing forced subtitles even if forced-only were not set git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4678 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- libhb/work.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/libhb/work.c b/libhb/work.c index ae836288e..5f27156ee 100644 --- a/libhb/work.c +++ b/libhb/work.c @@ -1005,12 +1005,6 @@ static void do_job( hb_job_t * job ) subtitle->fifo_sync = hb_fifo_init( FIFO_SMALL, FIFO_SMALL_WAKE ); subtitle->fifo_out = hb_fifo_init( FIFO_SMALL, FIFO_SMALL_WAKE ); - if( job->indepth_scan && - !( job->select_subtitle_config.force && - hb_subtitle_can_force( subtitle->source ) ) ) - { - continue; - } w = hb_get_work( subtitle->codec ); w->fifo_in = subtitle->fifo_in; w->fifo_out = subtitle->fifo_raw; @@ -1386,10 +1380,10 @@ cleanup: } } - if( subtitle_forced_id ) + if( subtitle_forced_id && job->select_subtitle_config.force ) { - /* If there is a subtitle stream with forced subtitles - * then select it in preference to the lowest. */ + /* If there is a subtitle stream with forced subtitles and forced-only + * is set, then select it in preference to the lowest. */ subtitle_hit = subtitle_forced_id; hb_log( "Found a subtitle candidate with id 0x%x (contains forced subs)", subtitle_hit ); -- cgit v1.2.3