From 1377a0a4f9e4fff9243a16386bf2eba3001640c0 Mon Sep 17 00:00:00 2001 From: Julien Isorce Date: Thu, 18 Feb 2016 16:21:38 +0000 Subject: [PATCH] gldebug: make sure debug is initialized when calling gst_gl_insert_debug_marker Usually gl debug is initialized in gst_gl_context_create_thread. But this function is not used when using the GstGLContextGPUProcess from ChromiumGStreamerBackend. Received signal 11 SEGV_MAPERR 000000000000 gst_debug_category_get_threshold gst_gl_insert_debug_marker gst_gl_base_filter_gl_start --- gst-libs/gst/gl/gstgldebug.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gst-libs/gst/gl/gstgldebug.c b/gst-libs/gst/gl/gstgldebug.c index c54d7450a5..2b9a01fc6f 100644 --- a/gst-libs/gst/gl/gstgldebug.c +++ b/gst-libs/gst/gl/gstgldebug.c @@ -333,6 +333,8 @@ gst_gl_insert_debug_marker (GstGLContext * context, const gchar * format, ...) gint len; va_list args; + _init_debug (); + /* are we enabled */ if (gst_debug_category_get_threshold (gst_gl_marker_debug) < GST_LEVEL_FIXME) return;