[Spice-devel] [PATCH spice-gtk 2/2] gstreamer: add debug message for each element added to pipeline
Snir Sheriber
ssheribe at redhat.com
Tue Sep 24 14:06:54 UTC 2019
Signed-off-by: Snir Sheriber <ssheribe at redhat.com>
---
This helps to debug plugins load related issues
---
src/channel-display-gst.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/channel-display-gst.c b/src/channel-display-gst.c
index 437328b..16bfa37 100644
--- a/src/channel-display-gst.c
+++ b/src/channel-display-gst.c
@@ -473,6 +473,10 @@ sink_event_probe(GstPad *pad, GstPadProbeInfo *info, gpointer data)
static void
element_setup_cb(GstElement *pipeline, GstElement *element, SpiceGstDecoder *decoder)
{
+ GstElementFactory *f = gst_element_get_factory (element);
+
+ SPICE_DEBUG("A new element was added to Gstreamer's pipeline (%s)",
+ f ? GST_OBJECT_NAME(f) : GST_OBJECT_NAME(element));
/* Attach a probe to the sink to update the statistics */
if (GST_IS_BASE_SINK(element)) {
GstPad *pad = gst_element_get_static_pad(element, "sink");
--
2.21.0
More information about the Spice-devel
mailing list