summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/hwdec.c
diff options
context:
space:
mode:
authorAman Gupta <aman@tmm1.net>2017-02-16 10:53:48 -0800
committerAman Gupta <aman@tmm1.net>2017-02-17 11:43:24 -0800
commit53fab20c6d5d13bc6baaa8321186ef6b3c8a8844 (patch)
tree043bf28bdd6c2a18971e4af5ee6129edda3099eb /video/out/opengl/hwdec.c
parentf02752c0d591a3aea3f5ad5d98855a505f369510 (diff)
downloadmpv-53fab20c6d5d13bc6baaa8321186ef6b3c8a8844.tar.bz2
mpv-53fab20c6d5d13bc6baaa8321186ef6b3c8a8844.tar.xz
vo_opengl: implement videotoolbox hwdec on iOS
Implements --hwdec=videotoolbox on iOS. Similar to hwdec_osx.c, but using CVPixelBuffer APIs available on iOS instead of the equivalent IOSurface APIs in macOS.
Diffstat (limited to 'video/out/opengl/hwdec.c')
-rw-r--r--video/out/opengl/hwdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/opengl/hwdec.c b/video/out/opengl/hwdec.c
index ab365df8ff..e80d5c4fe5 100644
--- a/video/out/opengl/hwdec.c
+++ b/video/out/opengl/hwdec.c
@@ -47,7 +47,7 @@ static const struct gl_hwdec_driver *const mpgl_hwdec_drivers[] = {
#if HAVE_VDPAU_GL_X11
&gl_hwdec_vdpau,
#endif
-#if HAVE_VIDEOTOOLBOX_GL
+#if HAVE_VIDEOTOOLBOX_GL || HAVE_IOS_GL
&gl_hwdec_videotoolbox,
#endif
#if HAVE_D3D_HWACCEL