summaryrefslogtreecommitdiffstats
path: root/libhb/reader.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2009-06-13 17:40:29 +0000
committerjstebbins <[email protected]>2009-06-13 17:40:29 +0000
commit5a48476a05a18fbd5385aab24134c7d0c6b7b59d (patch)
tree938b2204a29b3eef445c2e4b77f97ceb08596850 /libhb/reader.c
parentc9987f3bb7a178159687e53edc88bc55ccb5cfd3 (diff)
libhb: fix forced foreign language scan issues
- subtitles were not being added to list of subs to scan because the wrong config was being checked for the forced flag. needed to use job->select_subtitle_config instead of subtitle->config - scr code in reader was preventing the majority of subtitle packets from reaching decvobsub. made decvobsub more robust by adding ability to re-sync in the event of lost packets. made scr recovery initialize itself even in the event that it sees audio or subtitles before seeing video. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2526 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/reader.c')
-rw-r--r--libhb/reader.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libhb/reader.c b/libhb/reader.c
index ad0fe64dd..5dc30afe9 100644
--- a/libhb/reader.c
+++ b/libhb/reader.c
@@ -408,6 +408,8 @@ static void ReaderFunc( void * _r )
// packet of a stream we've never seen before. We
// have no idea what the timing should be so toss
// this buffer & wait for a stream we've already seen.
+ // add stream to list of streams we have seen
+ id_to_st( r, buf );
hb_buffer_close( &buf );
continue;
}
@@ -530,7 +532,7 @@ static hb_fifo_t ** GetFifoForId( hb_job_t * job, int id )
subtitle = hb_list_item( title->list_subtitle, i );
if (id == subtitle->id) {
subtitle->hits++;
- if( !job->indepth_scan || subtitle->config.force )
+ if( !job->indepth_scan || job->select_subtitle_config.force )
{
/*
* Pass the subtitles to be processed if we are not scanning, or if