From 8e9bff8f32423c3ac69986bb3e4d03300d41dd4e Mon Sep 17 00:00:00 2001 From: jstebbins Date: Sun, 29 Mar 2015 16:22:30 +0000 Subject: 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 --- libhb/decomb.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libhb/decomb.c') diff --git a/libhb/decomb.c b/libhb/decomb.c index ff1d566fa..7a1b4bf66 100644 --- a/libhb/decomb.c +++ b/libhb/decomb.c @@ -2432,6 +2432,8 @@ static int hb_decomb_init( hb_filter_object_t * filter, } } + init->job->use_decomb = 1; + return 0; } -- cgit v1.2.3