gl/cocoa: Fix debug statements and platform

This commit is contained in:
Edward Hervey 2014-03-17 14:06:22 +01:00
parent a26b8fdceb
commit 16e60d0129
2 changed files with 3 additions and 3 deletions

View file

@ -176,7 +176,7 @@ gst_gl_context_cocoa_create_context (GstGLContext *context, GstGLAPI gl_api,
glContext = [[NSOpenGLContext alloc] initWithFormat:fmt glContext = [[NSOpenGLContext alloc] initWithFormat:fmt
shareContext:context_cocoa->priv->external_gl_context]; shareContext:context_cocoa->priv->external_gl_context];
GST_DEBUG ("NSOpenGL context created: %lud\n", (guintptr) glContext); GST_DEBUG ("NSOpenGL context created: %"G_GUINTPTR_FORMAT, (guintptr) glContext);
context_cocoa->priv->gl_context = glContext; context_cocoa->priv->gl_context = glContext;
@ -262,5 +262,5 @@ gst_gl_context_cocoa_get_gl_api (GstGLContext * context)
static GstGLPlatform static GstGLPlatform
gst_gl_context_cocoa_get_gl_platform (GstGLContext * context) gst_gl_context_cocoa_get_gl_platform (GstGLContext * context)
{ {
return GST_GL_API_COCOA; return GST_GL_PLATFORM_CGL;
} }

View file

@ -148,7 +148,7 @@ gst_gl_window_cocoa_create_window (GstGLWindowCocoa *window_cocoa)
NSResizableWindowMask | NSMiniaturizableWindowMask) NSResizableWindowMask | NSMiniaturizableWindowMask)
backing: NSBackingStoreBuffered defer: NO screen: nil gstWin: window_cocoa]; backing: NSBackingStoreBuffered defer: NO screen: nil gstWin: window_cocoa];
GST_DEBUG ("NSWindow id: %lud\n", (guintptr) priv->internal_win_id); GST_DEBUG ("NSWindow id: %"G_GUINTPTR_FORMAT, (guintptr) priv->internal_win_id);
priv->thread = [NSThread currentThread]; priv->thread = [NSThread currentThread];