mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +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) \
|
#define GST_GL_CONTEXT_GET_PRIVATE(o) \
|
||||||
(G_TYPE_INSTANCE_GET_PRIVATE((o), GST_GL_TYPE_CONTEXT, GstGLContextPrivate))
|
(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 gst_gl_context_create_thread (GstGLContext * context);
|
||||||
static gpointer _default_get_proc_address (GstGLContext * context,
|
static gpointer _default_get_proc_address (GstGLContext * context,
|
||||||
const gchar * name);
|
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);
|
klass->get_proc_address = GST_DEBUG_FUNCPTR (_default_get_proc_address);
|
||||||
|
|
||||||
G_OBJECT_CLASS (klass)->finalize = gst_gl_context_finalize;
|
G_OBJECT_CLASS (klass)->finalize = gst_gl_context_finalize;
|
||||||
|
|
||||||
|
_init_debug ();
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in a new issue