summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Isorce <julien.isorce@gmail.com>2014-11-03 22:59:41 +0000
committerSebastian Dröge <sebastian@centricular.com>2014-11-04 09:53:33 +0100
commit49c49c1f88e867d56c36272efd409326170c6f62 (patch)
tree668056281a59be964e214e126f9a9908c7123daf
parent88f95623340a00f8fd5f9ffd0670ea464c786519 (diff)
downloadgstreamer-plugins-bad-49c49c1f88e867d56c36272efd409326170c6f62.tar.gz
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.)
-rw-r--r--gst-libs/gst/gl/cocoa/gstglwindow_cocoa.m8
1 files 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 eda2ee1a0..41722b8c3 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;
}