diff --git a/gst-libs/gst/pbutils/gstdiscoverer.c b/gst-libs/gst/pbutils/gstdiscoverer.c index 867fa65c83..dcd07f24a0 100644 --- a/gst-libs/gst/pbutils/gstdiscoverer.c +++ b/gst-libs/gst/pbutils/gstdiscoverer.c @@ -760,10 +760,10 @@ parse_stream_topology (GstDiscoverer * dc, const GstStructure * topology, GstCaps *caps; const GstStructure *st; - GST_DEBUG ("next is a structure %" GST_PTR_FORMAT); - st = gst_value_get_structure (nval); + GST_DEBUG ("next is a structure %" GST_PTR_FORMAT, st); + if (!parent) parent = res;