diff --git a/gst-libs/gst/gl/cocoa/gstglwindow_cocoa.m b/gst-libs/gst/gl/cocoa/gstglwindow_cocoa.m index 8f55f20cea..c1fb7a7b16 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; }