mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 08:41:07 +00:00
gl/cocoa: Don't override the application delegate
Otherwise interesting things will happen in Cocoa applications, like infinite event loops that block the NSApplication loop forever. This was only needed for GNUStep and thus can safely be removed now.
This commit is contained in:
parent
673b0190af
commit
3fe5be7c9a
1 changed files with 1 additions and 17 deletions
|
@ -33,7 +33,7 @@
|
||||||
/* */
|
/* */
|
||||||
/* =============================================================*/
|
/* =============================================================*/
|
||||||
|
|
||||||
@interface GstGLNSWindow: NSWindow <NSApplicationDelegate> {
|
@interface GstGLNSWindow: NSWindow {
|
||||||
BOOL m_isClosed;
|
BOOL m_isClosed;
|
||||||
GstGLWindowCocoa *window_cocoa;
|
GstGLWindowCocoa *window_cocoa;
|
||||||
}
|
}
|
||||||
|
@ -138,8 +138,6 @@ gst_gl_window_cocoa_create_window (GstGLWindowCocoa *window_cocoa, NSRect rect)
|
||||||
|
|
||||||
GST_DEBUG ("NSWindow id: %"G_GUINTPTR_FORMAT, (guintptr) priv->internal_win_id);
|
GST_DEBUG ("NSWindow id: %"G_GUINTPTR_FORMAT, (guintptr) priv->internal_win_id);
|
||||||
|
|
||||||
[[NSApplication sharedApplication] setDelegate: priv->internal_win_id];
|
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -443,20 +441,6 @@ close_window_cb (gpointer data)
|
||||||
return YES;
|
return YES;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) applicationDidFinishLaunching: (NSNotification *) not {
|
|
||||||
}
|
|
||||||
|
|
||||||
- (void) applicationWillFinishLaunching: (NSNotification *) not {
|
|
||||||
}
|
|
||||||
|
|
||||||
- (BOOL) applicationShouldTerminateAfterLastWindowClosed:(NSApplication *)app {
|
|
||||||
/* the application is manually stopped by calling stopApp on the AppThreadPerformer */
|
|
||||||
return NO;
|
|
||||||
}
|
|
||||||
|
|
||||||
- (void) applicationWillTerminate:(NSNotification *)aNotification {
|
|
||||||
}
|
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue