mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 18:05:37 +00:00
osxvideosink: check for deprecated constants prior to OSX 10.10
cocoawindow.m:339:5: error: 'NSOpenGLPFAWindow' is deprecated: first deprecated in OS X 10.9 cocoawindow.m:576:7: error: 'NSOpenGLPFAFullScreen' is deprecated: first deprecated in OS X 10.6 cocoawindow.m:605:24: error: 'setFullScreen' is deprecated: first deprecated in OS X 10.7
This commit is contained in:
parent
8afc8c8f3b
commit
d63c163335
1 changed files with 6 additions and 0 deletions
|
@ -336,7 +336,9 @@ const gchar* gst_keycode_to_keyname(gint16 keycode)
|
|||
NSOpenGLPFAColorSize, 24,
|
||||
NSOpenGLPFAAlphaSize, 8,
|
||||
NSOpenGLPFADepthSize, 24,
|
||||
#if MAC_OS_X_VERSION_MAX_ALLOWED < 1090
|
||||
NSOpenGLPFAWindow,
|
||||
#endif
|
||||
0
|
||||
};
|
||||
|
||||
|
@ -573,7 +575,9 @@ const gchar* gst_keycode_to_keyname(gint16 keycode)
|
|||
NSOpenGLPFAColorSize, 24,
|
||||
NSOpenGLPFAAlphaSize, 8,
|
||||
NSOpenGLPFADepthSize, 24,
|
||||
#if MAC_OS_X_VERSION_MAX_ALLOWED < 1060
|
||||
NSOpenGLPFAFullScreen,
|
||||
#endif
|
||||
NSOpenGLPFAScreenMask,
|
||||
CGDisplayIDToOpenGLDisplayMask (kCGDirectMainDisplay),
|
||||
0
|
||||
|
@ -602,7 +606,9 @@ const gchar* gst_keycode_to_keyname(gint16 keycode)
|
|||
GST_WARNING ("CGCaptureAllDisplays() failed");
|
||||
return;
|
||||
}
|
||||
#if MAC_OS_X_VERSION_MAX_ALLOWED < 1070
|
||||
[fullScreenContext setFullScreen];
|
||||
#endif
|
||||
[fullScreenContext makeCurrentContext];
|
||||
|
||||
fullscreen = YES;
|
||||
|
|
Loading…
Reference in a new issue