#include "config.h"
#endif
-#include "gstglwindow_cocoa.h"
-
#include <Cocoa/Cocoa.h>
+#include "gstglwindow_cocoa.h"
/* =============================================================*/
/* */
gst_gl_window_cocoa_class_init (GstGLWindowCocoaClass * klass)
{
GstGLWindowClass *window_class;
+
+#ifndef GNUSTEP
+ NSAutoreleasePool* pool = nil;
+#endif
window_class = (GstGLWindowClass *) klass;
GST_DEBUG_FUNCPTR (gst_gl_window_cocoa_get_gl_api);
#ifndef GNUSTEP
- NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
+ pool = [[NSAutoreleasePool alloc] init];
[NSApplication sharedApplication];
-
+
[pool release];
#endif
}
GST_DEBUG ("NSOpenGL context created: %lud\n", (gulong) glContext);
- priv->gl_context = glContext;
+ m_cocoa->priv->gl_context = glContext;
[glView setOpenGLContext:glContext];
#else
}
- (void) stopApp {
- NSAutoreleasePool *pool;
+#ifdef GNUSTEP
+ NSAutoreleasePool *pool = nil;
+#endif
m_cocoa->priv->running = FALSE;
if (m_callback)