gl: pass NSView instead of NSWindow in cocoa-videooverlay example
authorJulien Isorce <julien.isorce@gmail.com>
Fri, 2 May 2014 04:51:36 +0000 (05:51 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:31:39 +0000 (19:31 +0000)
https://bugzilla.gnome.org/show_bug.cgi?id=728451

tests/examples/gl/cocoa/cocoa-videooverlay.m

index c9d76a574327103a138346c7884778fdfcf54cee..683abe12530b54ec44a9253bf61f056d1f5826d0 100755 (executable)
@@ -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);