mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 23:06:49 +00:00
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.)
This commit is contained in:
parent
653c04b121
commit
a581d479ff
1 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue