summaryrefslogtreecommitdiff
path: root/tests/examples
diff options
context:
space:
mode:
authorThijs Vermeir <thijs.vermeir@barco.com>2014-12-01 10:59:32 +0100
committerThijs Vermeir <thijs.vermeir@barco.com>2014-12-01 10:59:32 +0100
commit6215b5dd14b7a5f686514b7958ae25457cb7ae36 (patch)
tree97a6caaf1cfdf93fba6ef4d8391b1e4d13fb42ae /tests/examples
parent87694c223248283cd3c55b523879ec62fd90d761 (diff)
downloadgstreamer-plugins-bad-6215b5dd14b7a5f686514b7958ae25457cb7ae36.tar.gz
gl/cocoa: Fix example on Mac OS X 10.10
Using NSApp directly seems to confuse something, as the compiler was expecting an id<NSFileManagerDelegate>. 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
Diffstat (limited to 'tests/examples')
-rwxr-xr-xtests/examples/gl/cocoa/cocoa-videooverlay.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/examples/gl/cocoa/cocoa-videooverlay.m b/tests/examples/gl/cocoa/cocoa-videooverlay.m
index 9c5fc9ad3..78c19690a 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 <NSApplicationDelegate> {
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"];