From fe8fdbdc7cbedba7a2c408c9b0d17fdea520642f Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Thu, 22 Jan 2015 16:08:11 +1100 Subject: [PATCH] glcontext/cocoa: add debug category --- gst-libs/gst/gl/cocoa/gstglcontext_cocoa.m | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gst-libs/gst/gl/cocoa/gstglcontext_cocoa.m b/gst-libs/gst/gl/cocoa/gstglcontext_cocoa.m index 43d5a1c863..59fa2613ca 100644 --- a/gst-libs/gst/gl/cocoa/gstglcontext_cocoa.m +++ b/gst-libs/gst/gl/cocoa/gstglcontext_cocoa.m @@ -38,7 +38,11 @@ static GstGLPlatform gst_gl_context_cocoa_get_gl_platform (GstGLContext * contex #define GST_GL_CONTEXT_COCOA_GET_PRIVATE(o) \ (G_TYPE_INSTANCE_GET_PRIVATE((o), GST_GL_TYPE_CONTEXT_COCOA, GstGLContextCocoaPrivate)) -G_DEFINE_TYPE (GstGLContextCocoa, gst_gl_context_cocoa, GST_GL_TYPE_CONTEXT); +GST_DEBUG_CATEGORY_STATIC (gst_gl_context_cocoa_debug); +#define GST_CAT_DEFAULT gst_gl_context_cocoa_debug + +G_DEFINE_TYPE_WITH_CODE (GstGLContextCocoa, gst_gl_context_cocoa, + GST_GL_TYPE_CONTEXT, GST_DEBUG_CATEGORY_INIT (gst_gl_context_cocoa_debug, "glcontext_cocoa", 0, "Cocoa GL Context"); ); /* Define this if the GLib patch from * https://bugzilla.gnome.org/show_bug.cgi?id=741450