summaryrefslogtreecommitdiff
path: root/tests/examples
diff options
context:
space:
mode:
authorPhilippe Normand <philn@igalia.com>2017-08-30 15:16:39 +0100
committerPhilippe Normand <philn@igalia.com>2017-08-30 15:16:39 +0100
commitbdcac6f435142c8834629f62242a819497ebc7a1 (patch)
tree1661aef76aae7e4aa0c55d5aee798212b438f21f /tests/examples
parentf2674517518f14eab08d804562e5a746ff06337c (diff)
downloadgstreamer-plugins-bad-bdcac6f435142c8834629f62242a819497ebc7a1.tar.gz
examples/gl/gtk: fix overlay handling for macOS
The GTK+ window requires a NSView sub-view, not an NSWindow.
Diffstat (limited to 'tests/examples')
-rw-r--r--tests/examples/gl/gtk/gstgtk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/examples/gl/gtk/gstgtk.c b/tests/examples/gl/gtk/gstgtk.c
index 493d6b393..40caa8da6 100644
--- a/tests/examples/gl/gtk/gstgtk.c
+++ b/tests/examples/gl/gtk/gstgtk.c
@@ -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)