summaryrefslogtreecommitdiffstats
path: root/libhb/work.c
diff options
context:
space:
mode:
authorvan <[email protected]>2008-07-26 21:22:17 +0000
committervan <[email protected]>2008-07-26 21:22:17 +0000
commitb5185c17599137dff179e9dadc420686592c291d (patch)
tree8afb3ce0808386a348708dcdef7b27a262e471c0 /libhb/work.c
parent02e6431ec0ca85a6725fe0c3604193771181bdde (diff)
Fix subtitle scan to work with new stream eof logic.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1584 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/work.c')
-rw-r--r--libhb/work.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/libhb/work.c b/libhb/work.c
index 243b6b2e7..f7d050b6a 100644
--- a/libhb/work.c
+++ b/libhb/work.c
@@ -659,7 +659,7 @@ static void do_job( hb_job_t * job, int cpu_count )
// The muxer requires track information that's set up by the encoder
// init routines so we have to init the muxer last.
- job->muxer = hb_muxer_init( job );
+ job->muxer = job->indepth_scan? NULL : hb_muxer_init( job );
done = 0;
w = hb_list_item( job->list_work, 0 );
@@ -667,13 +667,11 @@ static void do_job( hb_job_t * job, int cpu_count )
w->init( w, job );
while( !*job->die )
{
- if( ( w->status = w->work( w, NULL, NULL ) ) == HB_WORK_DONE )
+ if ( !done && ( w->status = w->work( w, NULL, NULL ) ) == HB_WORK_DONE )
{
done = 1;
}
- if( done &&
- final_w->status == HB_WORK_DONE &&
- !hb_fifo_size( job->fifo_mpeg4 ) )
+ if( done && final_w->status == HB_WORK_DONE )
{
break;
}