diff options
author | jstebbins <[email protected]> | 2015-03-29 16:22:30 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2015-03-29 16:22:30 +0000 |
commit | 8e9bff8f32423c3ac69986bb3e4d03300d41dd4e (patch) | |
tree | a31260ce3ac5fc295f93f48ca2f7136563aa4455 /libhb/muxcommon.c | |
parent | 168ce686fd837de7fbf20266df31af2ac00c8db1 (diff) |
libhb: Eliminate global variable hb_gui_use_hwd_flag
This global was shared between the CLI and libhb and used as a back door to
force scan and encode passes to use the same ffmpeg context for hardware
decoding. Aside from the fact that this context sharing should not be necessary
and needs fixing, this information belongs in the hb_handle_t that is shared
between the scan and the encode. So put it there and make sure the hb_handle_t
get propagated to where the flag is needed.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7028 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/muxcommon.c')
-rw-r--r-- | libhb/muxcommon.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libhb/muxcommon.c b/libhb/muxcommon.c index ca9502e4c..9b15ee97a 100644 --- a/libhb/muxcommon.c +++ b/libhb/muxcommon.c @@ -638,7 +638,7 @@ hb_work_object_t * hb_muxer_init( hb_job_t * job ) /* Initialize the work objects that will receive fifo data */ - muxer = hb_get_work( WORK_MUX ); + muxer = hb_get_work( job->h, WORK_MUX ); muxer->private_data = calloc( sizeof( hb_work_private_t ), 1 ); muxer->private_data->job = job; muxer->private_data->mux = mux; @@ -652,7 +652,7 @@ hb_work_object_t * hb_muxer_init( hb_job_t * job ) { hb_audio_t *audio = hb_list_item( job->list_audio, i ); - w = hb_get_work( WORK_MUX ); + w = hb_get_work( job->h, WORK_MUX ); w->private_data = calloc( sizeof( hb_work_private_t ), 1 ); w->private_data->job = job; w->private_data->mux = mux; @@ -672,7 +672,7 @@ hb_work_object_t * hb_muxer_init( hb_job_t * job ) if (subtitle->config.dest != PASSTHRUSUB) continue; - w = hb_get_work( WORK_MUX ); + w = hb_get_work( job->h, WORK_MUX ); w->private_data = calloc( sizeof( hb_work_private_t ), 1 ); w->private_data->job = job; w->private_data->mux = mux; |