mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-13 01:35:30 +00:00
examples/gl/gtk: fix overlay handling for macOS
The GTK+ window requires a NSView sub-view, not an NSWindow.
This commit is contained in:
parent
f267451751
commit
bdcac6f435
1 changed files with 1 additions and 1 deletions
|
@ -107,7 +107,7 @@ gst_video_overlay_set_gtk_window (GstVideoOverlay * videooverlay,
|
||||||
if (GDK_IS_QUARTZ_DISPLAY (display) && (!user_choice
|
if (GDK_IS_QUARTZ_DISPLAY (display) && (!user_choice
|
||||||
|| g_strcmp0 (user_choice, "cocoa") == 0)) {
|
|| g_strcmp0 (user_choice, "cocoa") == 0)) {
|
||||||
gst_video_overlay_set_window_handle (videooverlay, (guintptr)
|
gst_video_overlay_set_window_handle (videooverlay, (guintptr)
|
||||||
gdk_quartz_window_get_nswindow (window));
|
gdk_quartz_window_get_nsview (window));
|
||||||
} else
|
} else
|
||||||
#endif
|
#endif
|
||||||
#if GST_GL_HAVE_WINDOW_X11 && defined(GDK_WINDOWING_X11)
|
#if GST_GL_HAVE_WINDOW_X11 && defined(GDK_WINDOWING_X11)
|
||||||
|
|
Loading…
Reference in a new issue