From 6215b5dd14b7a5f686514b7958ae25457cb7ae36 Mon Sep 17 00:00:00 2001 From: Thijs Vermeir Date: Mon, 1 Dec 2014 10:59:32 +0100 Subject: [PATCH] gl/cocoa: Fix example on Mac OS X 10.10 Using NSApp directly seems to confuse something, as the compiler was expecting an id. Switched to using [NSApplication sharedApplication], and specified the delegate protocol on the window class as well. Similar to https://bugzilla.gnome.org/show_bug.cgi?id=738740 --- tests/examples/gl/cocoa/cocoa-videooverlay.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/examples/gl/cocoa/cocoa-videooverlay.m b/tests/examples/gl/cocoa/cocoa-videooverlay.m index 9c5fc9ad3e..78c19690a5 100755 --- a/tests/examples/gl/cocoa/cocoa-videooverlay.m +++ b/tests/examples/gl/cocoa/cocoa-videooverlay.m @@ -28,7 +28,7 @@ /* */ /* ============================================================= */ -@interface MainWindow: NSWindow { +@interface MainWindow: NSWindow { GMainLoop *m_loop; GstElement *m_pipeline; gboolean m_isClosed; @@ -52,7 +52,7 @@ backing: NSBackingStoreBuffered defer: NO screen: nil]; [self setReleasedWhenClosed:NO]; - [NSApp setDelegate:self]; + [[NSApplication sharedApplication] setDelegate:self]; [self setTitle:@"gst-plugins-gl implements videooverlay interface"];