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:
parent
d75eb628d6
commit
28a2734184
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user