mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 04:31:06 +00:00
[731/906] cocoa: fix build when GNUSTEP is not defined
This commit is contained in:
parent
a98180cd53
commit
3c0b9715a9
1 changed files with 11 additions and 6 deletions
|
@ -22,10 +22,9 @@
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "gstglwindow_cocoa.h"
|
|
||||||
|
|
||||||
#include <Cocoa/Cocoa.h>
|
#include <Cocoa/Cocoa.h>
|
||||||
|
|
||||||
|
#include "gstglwindow_cocoa.h"
|
||||||
|
|
||||||
/* =============================================================*/
|
/* =============================================================*/
|
||||||
/* */
|
/* */
|
||||||
|
@ -164,6 +163,10 @@ static void
|
||||||
gst_gl_window_cocoa_class_init (GstGLWindowCocoaClass * klass)
|
gst_gl_window_cocoa_class_init (GstGLWindowCocoaClass * klass)
|
||||||
{
|
{
|
||||||
GstGLWindowClass *window_class;
|
GstGLWindowClass *window_class;
|
||||||
|
|
||||||
|
#ifndef GNUSTEP
|
||||||
|
NSAutoreleasePool* pool = nil;
|
||||||
|
#endif
|
||||||
|
|
||||||
window_class = (GstGLWindowClass *) klass;
|
window_class = (GstGLWindowClass *) klass;
|
||||||
|
|
||||||
|
@ -186,9 +189,9 @@ gst_gl_window_cocoa_class_init (GstGLWindowCocoaClass * klass)
|
||||||
GST_DEBUG_FUNCPTR (gst_gl_window_cocoa_get_gl_api);
|
GST_DEBUG_FUNCPTR (gst_gl_window_cocoa_get_gl_api);
|
||||||
|
|
||||||
#ifndef GNUSTEP
|
#ifndef GNUSTEP
|
||||||
NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
|
pool = [[NSAutoreleasePool alloc] init];
|
||||||
[NSApplication sharedApplication];
|
[NSApplication sharedApplication];
|
||||||
|
|
||||||
[pool release];
|
[pool release];
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
@ -521,7 +524,7 @@ gst_gl_window_cocoa_get_gl_api (GstGLWindow * window)
|
||||||
|
|
||||||
GST_DEBUG ("NSOpenGL context created: %lud\n", (gulong) glContext);
|
GST_DEBUG ("NSOpenGL context created: %lud\n", (gulong) glContext);
|
||||||
|
|
||||||
priv->gl_context = glContext;
|
m_cocoa->priv->gl_context = glContext;
|
||||||
|
|
||||||
[glView setOpenGLContext:glContext];
|
[glView setOpenGLContext:glContext];
|
||||||
#else
|
#else
|
||||||
|
@ -769,7 +772,9 @@ gst_gl_window_cocoa_get_gl_api (GstGLWindow * window)
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) stopApp {
|
- (void) stopApp {
|
||||||
NSAutoreleasePool *pool;
|
#ifdef GNUSTEP
|
||||||
|
NSAutoreleasePool *pool = nil;
|
||||||
|
#endif
|
||||||
|
|
||||||
m_cocoa->priv->running = FALSE;
|
m_cocoa->priv->running = FALSE;
|
||||||
if (m_callback)
|
if (m_callback)
|
||||||
|
|
Loading…
Reference in a new issue