summaryrefslogtreecommitdiffstats
path: root/libhb/stream.c
diff options
context:
space:
mode:
authorRodeo <[email protected]>2013-11-02 20:48:34 +0000
committerRodeo <[email protected]>2013-11-02 20:48:34 +0000
commit4a08a924b074b2691950bf0beddecdb73658104f (patch)
tree1d69d7392509310fd3a5cd57255d0308858c3490 /libhb/stream.c
parentb94f4686f052a9129c54b0bb5af39d6e86554872 (diff)
OpenCL: initial work on a new OpenCl wrapper, which will eventually phase out the existing one.
Based on an x264 patch by Anton Mitrofanov. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5870 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/stream.c')
-rw-r--r--libhb/stream.c4
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;