summaryrefslogtreecommitdiffstats
path: root/sys/osxvideo/osxvideosink.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/osxvideo/osxvideosink.h')
-rw-r--r--sys/osxvideo/osxvideosink.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/sys/osxvideo/osxvideosink.h b/sys/osxvideo/osxvideosink.h
index 2c144f5e..d7fba966 100644
--- a/sys/osxvideo/osxvideosink.h
+++ b/sys/osxvideo/osxvideosink.h
@@ -65,12 +65,12 @@ struct _GstOSXWindow {
gboolean internal;
GstOSXVideoSinkWindow* win;
GstGLView* gstview;
+ NSAutoreleasePool *pool;
};
struct _GstOSXVideoSink {
/* Our element stuff */
GstVideoSink videosink;
-
GstOSXWindow *osxwindow;
gint fps_n;
@@ -92,6 +92,16 @@ struct _GstOSXVideoSinkClass {
GType gst_osx_video_sink_get_type(void);
+#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_4
+@interface NSApplication(AppleMenu)
+- (void)setAppleMenu:(NSMenu *)menu;
+@end
+#endif
+
+@interface GstAppDelegate : NSObject
+- (NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication *)sender;
+@end
+
G_END_DECLS
#endif /* __GST_OSX_VIDEO_SINK_H__ */