examples/gl/gtk: fix overlay handling for macOS

The GTK+ window requires a NSView sub-view, not an NSWindow.
This commit is contained in:
Philippe Normand 2017-08-30 15:16:39 +01:00 committed by Tim-Philipp Müller
parent ed7d0c48f6
commit 0559b42d6c

View file

@ -107,7 +107,7 @@ gst_video_overlay_set_gtk_window (GstVideoOverlay * videooverlay,
if (GDK_IS_QUARTZ_DISPLAY (display) && (!user_choice
|| g_strcmp0 (user_choice, "cocoa") == 0)) {
gst_video_overlay_set_window_handle (videooverlay, (guintptr)
gdk_quartz_window_get_nswindow (window));
gdk_quartz_window_get_nsview (window));
} else
#endif
#if GST_GL_HAVE_WINDOW_X11 && defined(GDK_WINDOWING_X11)