]> granicus.if.org Git - handbrake/commitdiff
Fix a couple Foreign Audio Search issues causes by the changes introduced in revision...
authorRodeo <tdskywalker@gmail.com>
Mon, 14 May 2012 16:27:23 +0000 (16:27 +0000)
committerRodeo <tdskywalker@gmail.com>
Mon, 14 May 2012 16:27:23 +0000 (16:27 +0000)
- 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

index ae836288e18db5abd7edfbcde8bcc9cd5c372e65..5f27156eedc2201f8ad15bc80bbf70afb285859d 100644 (file)
@@ -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 );