gl/caopengllayer: add a debug category

This commit is contained in:
Matthew Waters 2016-11-15 21:43:59 +11:00 committed by Tim-Philipp Müller
parent 28d3ab2922
commit b19e74e02d

View file

@ -27,6 +27,22 @@
#include "gstglcaopengllayer.h"
#include "gstgl_cocoa_private.h"
#define GST_CAT_DEFAULT gst_gl_ca_opengl_layer_debug
GST_DEBUG_CATEGORY_STATIC (GST_CAT_DEFAULT);
static void
_init_debug (void)
{
static volatile gsize _init = 0;
if (g_once_init_enter (&_init)) {
GST_DEBUG_CATEGORY_INIT(gst_gl_ca_opengl_layer_debug, "glcaopengllayer",
0, "CAOpenGLLayer");
g_once_init_leave (&_init, 1);
}
}
@implementation GstGLCAOpenGLLayer
- (void)dealloc {
if (self->draw_notify)
@ -51,6 +67,8 @@ _context_ready (gpointer data)
- (id)initWithGstGLContext:(GstGLContextCocoa *)parent_gl_context {
[super init];
_init_debug();
GST_LOG ("init CAOpenGLLayer");
self->gst_gl_context = parent_gl_context;