examples/gl/gtk: fix overlay handling for macOS
authorPhilippe Normand <philn@igalia.com>
Wed, 30 Aug 2017 14:16:39 +0000 (15:16 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:32:30 +0000 (19:32 +0000)
The GTK+ window requires a NSView sub-view, not an NSWindow.

tests/examples/gl/gtk/gstgtk.c

index 493d6b3..40caa8d 100644 (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)