From: Rodeo Date: Sun, 19 May 2013 14:21:08 +0000 (+0000) Subject: OpenCL: work: fix logging of job->use_opencl; it was done before setting it instead... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a359914185866eefb00239fd7b25280c1f3a3516;p=handbrake OpenCL: work: fix logging of job->use_opencl; it was done before setting it instead of after. git-svn-id: svn://svn.handbrake.fr/HandBrake/branches/opencl@5482 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- diff --git a/libhb/work.c b/libhb/work.c index 49d07ada5..0739bd90d 100644 --- a/libhb/work.c +++ b/libhb/work.c @@ -542,18 +542,24 @@ static void do_job( hb_job_t * job ) job->list_work = hb_list_init(); +#ifdef USE_OPENCL + /* init opencl environment */ + if (job->use_opencl) + job->use_opencl = !hb_init_opencl_run_env(0, NULL, "-I."); +#else + job->use_opencl = 0; +#endif + hb_log( "starting job" ); - if( job->use_opencl || job->use_hwd ) + + if (job->use_opencl || job->use_hwd) { - hb_log( "Using GPU : Yes." ); - /* init opencl environment */ -#ifdef USE_OPENCL - if( job->use_opencl ) - job->use_opencl =! hb_init_opencl_run_env( 0, NULL, "-I." ); -#endif + hb_log("Using GPU: Yes."); } else - hb_log( "Using GPU : NO." ); + { + hb_log("Using GPU: NO."); + } /* Look for the scanned subtitle in the existing subtitle list * select_subtitle implies that we did a scan. */ if( !job->indepth_scan && interjob->select_subtitle )