mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
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
This commit is contained in:
parent
bbac8bf8d0
commit
035f6f975a
1 changed files with 2 additions and 2 deletions
|
@ -28,7 +28,7 @@
|
||||||
/* */
|
/* */
|
||||||
/* ============================================================= */
|
/* ============================================================= */
|
||||||
|
|
||||||
@interface MainWindow: NSWindow {
|
@interface MainWindow: NSWindow <NSApplicationDelegate> {
|
||||||
GMainLoop *m_loop;
|
GMainLoop *m_loop;
|
||||||
GstElement *m_pipeline;
|
GstElement *m_pipeline;
|
||||||
gboolean m_isClosed;
|
gboolean m_isClosed;
|
||||||
|
@ -52,7 +52,7 @@
|
||||||
backing: NSBackingStoreBuffered defer: NO screen: nil];
|
backing: NSBackingStoreBuffered defer: NO screen: nil];
|
||||||
|
|
||||||
[self setReleasedWhenClosed:NO];
|
[self setReleasedWhenClosed:NO];
|
||||||
[NSApp setDelegate:self];
|
[[NSApplication sharedApplication] setDelegate:self];
|
||||||
|
|
||||||
[self setTitle:@"gst-plugins-gl implements videooverlay interface"];
|
[self setTitle:@"gst-plugins-gl implements videooverlay interface"];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue