diff --git a/gst-libs/gst/gl/cocoa/gstglwindow_cocoa.m b/gst-libs/gst/gl/cocoa/gstglwindow_cocoa.m index 40d6bc2815..b13f1de711 100644 --- a/gst-libs/gst/gl/cocoa/gstglwindow_cocoa.m +++ b/gst-libs/gst/gl/cocoa/gstglwindow_cocoa.m @@ -201,6 +201,11 @@ gst_gl_window_cocoa_create_window (GstGLWindowCocoa *window_cocoa) g_atomic_int_set (&window_cocoa->priv->view_ready, 1); + /* Set the window handle for real now that the NSWindow has been created. */ + if (priv->external_view) + gst_gl_window_cocoa_set_window_handle (window, + (guintptr) priv->external_view); + return TRUE; }