From: sr55 Date: Sun, 15 Jan 2017 20:16:51 +0000 (+0000) Subject: cli: Adding hb_opencl_set_enable when --use-opencl is set. #496 X-Git-Tag: 1.0.2~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d12ed99443d5cd1870c49d1ca30cdc1775539403;p=handbrake cli: Adding hb_opencl_set_enable when --use-opencl is set. #496 --- diff --git a/test/test.c b/test/test.c index d48e88a8b..2e9c115f9 100644 --- a/test/test.c +++ b/test/test.c @@ -448,6 +448,11 @@ int main( int argc, char ** argv ) hb_register_error_handler(&hb_cli_error_handler); hb_dvd_set_dvdnav( dvdnav ); + + if (use_opencl == 1) + { + hb_opencl_set_enable(h, use_opencl); + } /* Show version */ fprintf( stderr, "%s - %s - %s\n",