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"];