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
@ -336,7 +336,9 @@ const gchar* gst_keycode_to_keyname(gint16 keycode)
|
|||||||
NSOpenGLPFAColorSize, 24,
|
NSOpenGLPFAColorSize, 24,
|
||||||
NSOpenGLPFAAlphaSize, 8,
|
NSOpenGLPFAAlphaSize, 8,
|
||||||
NSOpenGLPFADepthSize, 24,
|
NSOpenGLPFADepthSize, 24,
|
||||||
|
#if MAC_OS_X_VERSION_MAX_ALLOWED < 1090
|
||||||
NSOpenGLPFAWindow,
|
NSOpenGLPFAWindow,
|
||||||
|
#endif
|
||||||
0
|
0
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -573,7 +575,9 @@ const gchar* gst_keycode_to_keyname(gint16 keycode)
|
|||||||
NSOpenGLPFAColorSize, 24,
|
NSOpenGLPFAColorSize, 24,
|
||||||
NSOpenGLPFAAlphaSize, 8,
|
NSOpenGLPFAAlphaSize, 8,
|
||||||
NSOpenGLPFADepthSize, 24,
|
NSOpenGLPFADepthSize, 24,
|
||||||
|
#if MAC_OS_X_VERSION_MAX_ALLOWED < 1060
|
||||||
NSOpenGLPFAFullScreen,
|
NSOpenGLPFAFullScreen,
|
||||||
|
#endif
|
||||||
NSOpenGLPFAScreenMask,
|
NSOpenGLPFAScreenMask,
|
||||||
CGDisplayIDToOpenGLDisplayMask (kCGDirectMainDisplay),
|
CGDisplayIDToOpenGLDisplayMask (kCGDirectMainDisplay),
|
||||||
0
|
0
|
||||||
@ -602,7 +606,9 @@ const gchar* gst_keycode_to_keyname(gint16 keycode)
|
|||||||
GST_WARNING ("CGCaptureAllDisplays() failed");
|
GST_WARNING ("CGCaptureAllDisplays() failed");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
#if MAC_OS_X_VERSION_MAX_ALLOWED < 1070
|
||||||
[fullScreenContext setFullScreen];
|
[fullScreenContext setFullScreen];
|
||||||
|
#endif
|
||||||
[fullScreenContext makeCurrentContext];
|
[fullScreenContext makeCurrentContext];
|
||||||
|
|
||||||
fullscreen = YES;
|
fullscreen = YES;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user