glwindow_cocoa: fix video overlay support

Make sure the window handle is configured after the NSWindow was created.

https://bugzilla.gnome.org/show_bug.cgi?id=767462
This commit is contained in:
Philippe Normand 2017-07-15 17:25:36 +01:00
parent 24e3cbf13b
commit dcb35318e9

View file

@ -201,6 +201,11 @@ gst_gl_window_cocoa_create_window (GstGLWindowCocoa *window_cocoa)
g_atomic_int_set (&window_cocoa->priv->view_ready, 1); 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; return TRUE;
} }