summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAman Gupta <aman@tmm1.net>2016-10-19 13:40:10 -0700
committerwm4 <wm4@nowhere>2016-10-20 17:45:27 +0200
commit26458419a79339a186028cb26d842f3b9fa9eb23 (patch)
tree61cff0000776d5744beb2cfa011b42244c79f43c
parent4bd3e51fbe61ae83bc9f6674646962d24ea1e075 (diff)
downloadmpv-26458419a79339a186028cb26d842f3b9fa9eb23.tar.bz2
mpv-26458419a79339a186028cb26d842f3b9fa9eb23.tar.xz
wscript: videotoolbox is available on iOS even though IOSurface is not
-rw-r--r--wscript5
1 files changed, 3 insertions, 2 deletions
diff --git a/wscript b/wscript
index b309e32cd3..ccdf3a9fdc 100644
--- a/wscript
+++ b/wscript
@@ -660,7 +660,9 @@ video_output_features = [
'desc': 'OpenGL Cocoa Backend',
'deps': [ 'cocoa' ],
'groups': [ 'gl' ],
- 'func': check_true
+ 'func': check_statement('IOSurface/IOSurface.h',
+ 'IOSurfaceRef surface;',
+ framework='IOSurface')
} , {
'name': '--gl-x11',
'desc': 'OpenGL X11 Backend',
@@ -868,7 +870,6 @@ hwaccel_features = [
check_headers('VideoToolbox/VideoToolbox.h'),
check_statement('libavcodec/videotoolbox.h',
'av_videotoolbox_alloc_context()',
- framework='IOSurface',
use='libav')),
} , {
'name': '--videotoolbox-gl',