From: Matthew Waters Date: Wed, 17 Feb 2016 02:00:46 +0000 (+1100) Subject: glfilter: insert the debug marker from the GL thread X-Git-Tag: 1.19.3~507^2~6979 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d99af79a2ca8199a4f4b5404124efc5c405444f4;p=platform%2Fupstream%2Fgstreamer.git glfilter: insert the debug marker from the GL thread https://bugzilla.gnome.org/show_bug.cgi?id=761538 --- diff --git a/gst-libs/gst/gl/gstglfilter.c b/gst-libs/gst/gl/gstglfilter.c index b43d2ac..59c8508 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