diff options
Diffstat (limited to 'libhb/stream.c')
-rw-r--r-- | libhb/stream.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libhb/stream.c b/libhb/stream.c index 8a2e08dab..ac34cc550 100644 --- a/libhb/stream.c +++ b/libhb/stream.c @@ -1122,7 +1122,7 @@ hb_title_t * hb_stream_title_scan(hb_stream_t *stream, hb_title_t * title) title->hwd_support = 0; #endif #ifdef USE_OPENCL - if ( hb_confirm_gpu_type() == 0 ) + if (hb_confirm_gpu_type() == 0 && hb_opencl_available() == 1) title->opencl_support = 1; else title->opencl_support = 0; @@ -5688,7 +5688,7 @@ static hb_title_t *ffmpeg_title_scan( hb_stream_t *stream, hb_title_t *title ) title->hwd_support = 0; #endif #ifdef USE_OPENCL - if (hb_confirm_gpu_type() == 0) + if (hb_confirm_gpu_type() == 0 && hb_opencl_available() == 1) title->opencl_support = 1; else title->opencl_support = 0; |