diff --git a/gst-libs/gst/gl/cocoa/gstglwindow_cocoa.m b/gst-libs/gst/gl/cocoa/gstglwindow_cocoa.m index 509d574364..d0ec341a12 100644 --- a/gst-libs/gst/gl/cocoa/gstglwindow_cocoa.m +++ b/gst-libs/gst/gl/cocoa/gstglwindow_cocoa.m @@ -213,8 +213,6 @@ gst_gl_window_cocoa_draw (GstGLWindow * window, guint width, guint height) GSRegisterCurrentThread(); app_thread_performer = [[AppThreadPerformer alloc] init:window_cocoa]; - [app_thread_performer performSelector:@selector(updateWindow) - onThread:priv->thread withObject:nil waitUntilDone:YES]; /* useful when set_window_handle is called before * the internal NSWindow */ @@ -258,6 +256,9 @@ gst_gl_window_cocoa_draw (GstGLWindow * window, guint width, guint height) priv->visible = TRUE; } + [app_thread_performer performSelector:@selector(updateWindow) + onThread:priv->thread withObject:nil waitUntilDone:YES]; + [pool release]; }