mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
glcontext: initialize debug in class_init
Useful if one uses gst_gl_context_egl_new directly instead of gst_gl_context_new.
This commit is contained in:
parent
71b8103cbd
commit
3bc4f55d3d
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue