mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 11:32:38 +00:00
gl: cocoa: fix warnings of unused variables
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2026>
This commit is contained in:
parent
b863c10ead
commit
4f970bb811
1 changed files with 0 additions and 6 deletions
|
@ -203,14 +203,12 @@ gst_gl_window_cocoa_create_window (GstGLWindowCocoa *window_cocoa)
|
||||||
NSRect rect = NSMakeRect (0, y, priv->preferred_width, priv->preferred_height);
|
NSRect rect = NSMakeRect (0, y, priv->preferred_width, priv->preferred_height);
|
||||||
NSRect windowRect = NSMakeRect (0, y, priv->preferred_width, priv->preferred_height);
|
NSRect windowRect = NSMakeRect (0, y, priv->preferred_width, priv->preferred_height);
|
||||||
GstGLContext *context = gst_gl_window_get_context (window);
|
GstGLContext *context = gst_gl_window_get_context (window);
|
||||||
GstGLContextCocoa *context_cocoa;
|
|
||||||
GstGLCAOpenGLLayer *layer;
|
GstGLCAOpenGLLayer *layer;
|
||||||
GstGLNSView *glView;
|
GstGLNSView *glView;
|
||||||
|
|
||||||
if (!context)
|
if (!context)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
context_cocoa = GST_GL_CONTEXT_COCOA (context);
|
|
||||||
layer = [[GstGLCAOpenGLLayer alloc] initWithGstGLContext:context];
|
layer = [[GstGLCAOpenGLLayer alloc] initWithGstGLContext:context];
|
||||||
layer.autoresizingMask = kCALayerWidthSizable | kCALayerHeightSizable;
|
layer.autoresizingMask = kCALayerWidthSizable | kCALayerHeightSizable;
|
||||||
layer.needsDisplayOnBoundsChange = YES;
|
layer.needsDisplayOnBoundsChange = YES;
|
||||||
|
@ -242,10 +240,6 @@ gst_gl_window_cocoa_create_window (GstGLWindowCocoa *window_cocoa)
|
||||||
static gboolean
|
static gboolean
|
||||||
gst_gl_window_cocoa_open (GstGLWindow *window, GError **err)
|
gst_gl_window_cocoa_open (GstGLWindow *window, GError **err)
|
||||||
{
|
{
|
||||||
GstGLWindowCocoa *window_cocoa;
|
|
||||||
|
|
||||||
window_cocoa = GST_GL_WINDOW_COCOA (window);
|
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue