summaryrefslogtreecommitdiffstats
path: root/libhb/work.c
diff options
context:
space:
mode:
authoreddyg <[email protected]>2009-05-07 04:37:47 +0000
committereddyg <[email protected]>2009-05-07 04:37:47 +0000
commit5a583fb1d543fd6336dcadd8f653654debba2f74 (patch)
tree7d0697232f4c713f741b21546cca1f2465b36193 /libhb/work.c
parent080a7aef7af9107730d6d0ca9ffcfca6abe32df8 (diff)
Change CC608 decoder to be its own thread
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2396 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/work.c')
-rw-r--r--libhb/work.c19
1 files changed, 15 insertions, 4 deletions
diff --git a/libhb/work.c b/libhb/work.c
index 323f4cf4a..7b270ca70 100644
--- a/libhb/work.c
+++ b/libhb/work.c
@@ -280,7 +280,9 @@ void hb_display_job_info( hb_job_t * job )
{
hb_log( " * subtitle track %i, %s (id %x) %s [%s] -> %s ", subtitle->track, subtitle->lang, subtitle->id,
subtitle->format == PICTURESUB ? "Picture" : "Text",
- subtitle->source == VOBSUB ? "VOBSUB" : (subtitle->source == CCSUB ? "CC" : "SRT"),
+ subtitle->source == VOBSUB ? "VOBSUB" :
+ ((subtitle->source == CC608SUB ||
+ subtitle->source == CC708SUB) ? "CC" : "SRT"),
subtitle->dest == RENDERSUB ? "Render/Burn in" : "Pass-Through");
}
}
@@ -508,12 +510,21 @@ static void do_job( hb_job_t * job, int cpu_count )
}
}
- if( !job->indepth_scan || job->subtitle_force ) {
+ if( (!job->indepth_scan || job->subtitle_force) &&
+ subtitle->source == VOBSUB ) {
/*
* Don't add threads for subtitles when we are scanning, unless
* looking for forced subtitles.
*/
- w = hb_get_work( WORK_DECSUB );
+ w = hb_get_work( WORK_DECVOBSUB );
+ w->fifo_in = subtitle->fifo_in;
+ w->fifo_out = subtitle->fifo_raw;
+ hb_list_add( job->list_work, w );
+ }
+
+ if( !job->indepth_scan && subtitle->source == CC608SUB )
+ {
+ w = hb_get_work( WORK_DECCC608 );
w->fifo_in = subtitle->fifo_in;
w->fifo_out = subtitle->fifo_raw;
hb_list_add( job->list_work, w );
@@ -527,7 +538,7 @@ static void do_job( hb_job_t * job, int cpu_count )
* Passing through a subtitle picture, this will have to
* be rle encoded before muxing.
*/
- w = hb_get_work( WORK_ENCSUB );
+ w = hb_get_work( WORK_ENCVOBSUB );
w->fifo_in = subtitle->fifo_sync;
w->fifo_out = subtitle->fifo_out;
hb_list_add( job->list_work, w );