From 28a2734184556ed2b9d3638e3c0640e4ee5f7c45 Mon Sep 17 00:00:00 2001 From: Philippe Normand Date: Sat, 15 Jul 2017 17:25:36 +0100 Subject: [PATCH] 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 --- gst-libs/gst/gl/cocoa/gstglwindow_cocoa.m | 5 +++++ 1 file changed, 5 insertions(+) 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; }