gl: pass NSView instead of NSWindow in cocoa-videooverlay example

https://bugzilla.gnome.org/show_bug.cgi?id=728451
This commit is contained in:
Julien Isorce 2014-05-02 05:51:36 +01:00 committed by Tim-Philipp Müller
parent e0f94ae094
commit 70bc469a8a

View file

@ -111,7 +111,7 @@ static GstBusSyncReply create_window (GstBus* bus, GstMessage* message, MainWind
g_print ("setting window handle %lud\n", (gulong) window);
gst_video_overlay_set_window_handle (GST_VIDEO_OVERLAY (GST_MESSAGE_SRC (message)), (guintptr) window);
gst_video_overlay_set_window_handle (GST_VIDEO_OVERLAY (GST_MESSAGE_SRC (message)), (guintptr) [window contentView]);
gst_message_unref (message);