summaryrefslogtreecommitdiff
path: root/gst-libs
diff options
context:
space:
mode:
authorPhilippe Normand <philn@igalia.com>2017-07-15 17:25:36 +0100
committerPhilippe Normand <philn@igalia.com>2017-07-16 11:34:41 +0100
commit474c7f9b6f773899267454f70a07f3dfa0b91989 (patch)
treeb675b1089f8a7492934192507c7c859a80dfb68e /gst-libs
parent546092597c262d64f76164823aa0ad5585267f1e (diff)
downloadgstreamer-plugins-bad-474c7f9b6f773899267454f70a07f3dfa0b91989.tar.gz
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
Diffstat (limited to 'gst-libs')
-rw-r--r--gst-libs/gst/gl/cocoa/gstglwindow_cocoa.m5
1 files changed, 5 insertions, 0 deletions
diff --git a/gst-libs/gst/gl/cocoa/gstglwindow_cocoa.m b/gst-libs/gst/gl/cocoa/gstglwindow_cocoa.m
index 026e60240..14a20d596 100644
--- a/gst-libs/gst/gl/cocoa/gstglwindow_cocoa.m
+++ b/gst-libs/gst/gl/cocoa/gstglwindow_cocoa.m
@@ -189,6 +189,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;
}