From d99af79a2ca8199a4f4b5404124efc5c405444f4 Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Wed, 17 Feb 2016 13:00:46 +1100 Subject: [PATCH] glfilter: insert the debug marker from the GL thread https://bugzilla.gnome.org/show_bug.cgi?id=761538 --- gst-libs/gst/gl/gstglfilter.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/gst-libs/gst/gl/gstglfilter.c b/gst-libs/gst/gl/gstglfilter.c index b43d2ac786..59c8508389 100644 --- a/gst-libs/gst/gl/gstglfilter.c +++ b/gst-libs/gst/gl/gstglfilter.c @@ -916,6 +916,13 @@ inbuf_error: return ret; } +static void +_debug_marker (GstGLContext * context, GstGLFilter * filter) +{ + gst_gl_insert_debug_marker (context, + "processing in element %s", GST_OBJECT_NAME (filter)); +} + static GstFlowReturn gst_gl_filter_transform (GstBaseTransform * bt, GstBuffer * inbuf, GstBuffer * outbuf) @@ -936,8 +943,8 @@ gst_gl_filter_transform (GstBaseTransform * bt, GstBuffer * inbuf, if (in_sync_meta) gst_gl_sync_meta_wait (in_sync_meta, context); - gst_gl_insert_debug_marker (context, - "processing in element %s", GST_OBJECT_NAME (filter)); + gst_gl_context_thread_add (context, (GstGLContextThreadFunc) _debug_marker, + filter); if (filter_class->filter) ret = filter_class->filter (filter, inbuf, outbuf); else