diff options
author | titer <[email protected]> | 2006-03-16 08:08:36 +0000 |
---|---|---|
committer | titer <[email protected]> | 2006-03-16 08:08:36 +0000 |
commit | 0531e628d2bf701202857411035c05a2b2544c58 (patch) | |
tree | 1f254e6ac34761aa89667f633618eae296753c7f /libhb/work.c | |
parent | a40bc8fa76c2e510498944b0de222cd843c6672a (diff) |
Added hb_init_express - makes the binary smaller. Still need to strip
the unused avi and ogm muxers.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@36 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/work.c')
-rw-r--r-- | libhb/work.c | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/libhb/work.c b/libhb/work.c index c22585313..3b1b4dce5 100644 --- a/libhb/work.c +++ b/libhb/work.c @@ -53,21 +53,13 @@ static void work_func( void * _work ) static hb_work_object_t * getWork( int id ) { - switch( id ) + hb_work_object_t * w; + for( w = hb_objects; w; w = w->next ) { - case WORK_SYNC: return &hb_sync; - case WORK_DECMPEG2: return &hb_decmpeg2; - case WORK_DECSUB: return &hb_decsub; - case WORK_RENDER: return &hb_render; - case WORK_ENCAVCODEC: return &hb_encavcodec; - case WORK_ENCXVID: return &hb_encxvid; - case WORK_ENCX264: return &hb_encx264; - case WORK_DECA52: return &hb_deca52; - case WORK_DECAVCODEC: return &hb_decavcodec; - case WORK_DECLPCM: return &hb_declpcm; - case WORK_ENCFAAC: return &hb_encfaac; - case WORK_ENCLAME: return &hb_enclame; - case WORK_ENCVORBIS: return &hb_encvorbis; + if( w->id == id ) + { + return w; + } } return NULL; } |