From 3bc4f55d3db3e3f6b8386d51036fe62af658b3f9 Mon Sep 17 00:00:00 2001 From: Julien Isorce Date: Wed, 27 May 2015 11:07:38 +0100 Subject: [PATCH] glcontext: initialize debug in class_init Useful if one uses gst_gl_context_egl_new directly instead of gst_gl_context_new. --- gst-libs/gst/gl/gstglcontext.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gst-libs/gst/gl/gstglcontext.c b/gst-libs/gst/gl/gstglcontext.c index ab63183fe4..f3ea1b1657 100644 --- a/gst-libs/gst/gl/gstglcontext.c +++ b/gst-libs/gst/gl/gstglcontext.c @@ -142,6 +142,8 @@ G_DEFINE_ABSTRACT_TYPE (GstGLContext, gst_gl_context, GST_TYPE_OBJECT); #define GST_GL_CONTEXT_GET_PRIVATE(o) \ (G_TYPE_INSTANCE_GET_PRIVATE((o), GST_GL_TYPE_CONTEXT, GstGLContextPrivate)) +static void _init_debug (void); + static gpointer gst_gl_context_create_thread (GstGLContext * context); static gpointer _default_get_proc_address (GstGLContext * context, const gchar * name); @@ -242,6 +244,8 @@ gst_gl_context_class_init (GstGLContextClass * klass) klass->get_proc_address = GST_DEBUG_FUNCPTR (_default_get_proc_address); G_OBJECT_CLASS (klass)->finalize = gst_gl_context_finalize; + + _init_debug (); } static void