mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-01 21:18:52 +00:00
cocoa: fix a warning when building in MacOS 10.12
gstglwindow_cocoa.m:186:60: error: incompatible pointer types sending 'GstGLContextCocoa *' (aka 'struct _GstGLContextCocoa *') to parameter of type 'GstGLContext *' (aka 'struct _GstGLContext *')
This commit is contained in:
parent
c0d87b5dd3
commit
842d7a9162
1 changed files with 2 additions and 2 deletions
|
@ -183,12 +183,12 @@ gst_gl_window_cocoa_create_window (GstGLWindowCocoa *window_cocoa)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
context_cocoa = GST_GL_CONTEXT_COCOA (context);
|
context_cocoa = GST_GL_CONTEXT_COCOA (context);
|
||||||
layer = [[GstGLCAOpenGLLayer alloc] initWithGstGLContext:context_cocoa];
|
layer = [[GstGLCAOpenGLLayer alloc] initWithGstGLContext:context];
|
||||||
glView = [[GstGLNSView alloc] initWithFrameLayer:window_cocoa rect:windowRect layer:layer];
|
glView = [[GstGLNSView alloc] initWithFrameLayer:window_cocoa rect:windowRect layer:layer];
|
||||||
|
|
||||||
gst_object_unref (context);
|
gst_object_unref (context);
|
||||||
|
|
||||||
internal_win_id = [[GstGLNSWindow alloc] initWithContentRect:rect styleMask:
|
internal_win_id = [[GstGLNSWindow alloc] initWithContentRect:rect styleMask:
|
||||||
(NSWindowStyleMaskTitled | NSWindowStyleMaskClosable |
|
(NSWindowStyleMaskTitled | NSWindowStyleMaskClosable |
|
||||||
NSWindowStyleMaskResizable | NSWindowStyleMaskMiniaturizable)
|
NSWindowStyleMaskResizable | NSWindowStyleMaskMiniaturizable)
|
||||||
backing: NSBackingStoreBuffered defer: NO screen: nil gstWin: window_cocoa];
|
backing: NSBackingStoreBuffered defer: NO screen: nil gstWin: window_cocoa];
|
||||||
|
|
Loading…
Reference in a new issue