diff options
author | eddyg <[email protected]> | 2007-09-11 06:02:07 +0000 |
---|---|---|
committer | eddyg <[email protected]> | 2007-09-11 06:02:07 +0000 |
commit | cf26ca5f77044ec3364edb446635c14b9c9daddc (patch) | |
tree | 9d72d3770415ea9fb0cde26a9f3ab52428fd029d /libhb/hb.c | |
parent | 6866dd773f1cff829538c963e8b7ba85fe700be3 (diff) |
Added buffer management and changed fifo sizes. Changed job->subtitle_scan to job->indepth_scan, and fixed memory init bug in denoise.c.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@945 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/hb.c')
-rw-r--r-- | libhb/hb.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/libhb/hb.c b/libhb/hb.c index fbcd81043..7a15a1181 100644 --- a/libhb/hb.c +++ b/libhb/hb.c @@ -104,6 +104,11 @@ hb_handle_t * hb_init_real( int verbose, int update_check ) } } + /* + * Initialise buffer pool + */ + hb_buffer_pool_init(); + /* CPU count detection */ hb_log( "hb_init: checking cpu count" ); h->cpu_count = hb_get_cpu_count(); @@ -607,7 +612,7 @@ void hb_add( hb_handle_t * h, hb_job_t * job ) */ memset( audio_lang, 0, sizeof( audio_lang ) ); - if ( job->subtitle_scan || job->native_language ) { + if ( job->indepth_scan || job->native_language ) { /* * Find the first audio language that is being encoded @@ -659,7 +664,7 @@ void hb_add( hb_handle_t * h, hb_job_t * job ) * If doing a subtitle scan then add all the matching subtitles for this * language. */ - if ( job->subtitle_scan ) + if ( job->indepth_scan ) { for( i=0; i < hb_list_count( title->list_subtitle ); i++ ) { @@ -926,6 +931,7 @@ void hb_close( hb_handle_t ** _h ) hb_lock_close( &h->pause_lock ); free( h ); *_h = NULL; + } /** |