diff options
author | Philippe Normand <philn@igalia.com> | 2017-08-30 15:16:39 +0100 |
---|---|---|
committer | Philippe Normand <philn@igalia.com> | 2017-08-30 15:16:39 +0100 |
commit | bdcac6f435142c8834629f62242a819497ebc7a1 (patch) | |
tree | 1661aef76aae7e4aa0c55d5aee798212b438f21f /tests/examples | |
parent | f2674517518f14eab08d804562e5a746ff06337c (diff) | |
download | gstreamer-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.c | 2 |
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) |