From 11661ceca97567439df352912c0e3556745c4f3c Mon Sep 17 00:00:00 2001 From: Julien Isorce Date: Mon, 3 Nov 2014 22:59:41 +0000 Subject: [PATCH] gl/cocoa: fix compiler warning Use the reshape function after being defined. The other way would have been to declare the reshape function in the header. gstglwindow_cocoa.m: In function '-[GstGLNSView drawRect:]': gstglwindow_cocoa.m:555: warning: 'GstGLNSView' may not respond to '-reshape' gstglwindow_cocoa.m:555: warning: (Messages without a matching method signature gstglwindow_cocoa.m:555: warning: will be assumed to return 'id' and accept gstglwindow_cocoa.m:555: warning: '...' as arguments.) --- gst-libs/gst/gl/cocoa/gstglwindow_cocoa.m | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gst-libs/gst/gl/cocoa/gstglwindow_cocoa.m b/gst-libs/gst/gl/cocoa/gstglwindow_cocoa.m index 8f55f20..c1fb7a7 100644 --- a/gst-libs/gst/gl/cocoa/gstglwindow_cocoa.m +++ b/gst-libs/gst/gl/cocoa/gstglwindow_cocoa.m @@ -551,10 +551,6 @@ resize_cb (gpointer data) [super renewGState]; } -- (void)drawRect: (NSRect)dirtyRect { - [self reshape:nil]; -} - - (void)reshape: (NSNotification*)notification { GstGLWindow *window; @@ -583,6 +579,10 @@ resize_cb (gpointer data) } } +- (void)drawRect: (NSRect)dirtyRect { + [self reshape:nil]; +} + - (BOOL) isOpaque { return YES; } -- 2.7.4