decodebin2: tweak chain topology description

... to also properly indicate chain's endpad if no elements are in the
chain (due to the endpad being a raw demuxer pad, or one setup without
decoders since uridecodebin or higher up decided not to need those).
This commit is contained in:
Mark Nauwelaerts 2011-10-03 14:51:56 +02:00
parent 12be1e6fc5
commit 60d5d08fbb

View file

@ -3443,7 +3443,8 @@ gst_decode_chain_get_topology (GstDecodeChain * chain)
u = gst_structure_id_empty_new (topology_structure_name);
/* Now at the last element */
if (chain->elements && (chain->endpad || chain->deadend)) {
if ((chain->elements || !chain->active_group) &&
(chain->endpad || chain->deadend)) {
s = gst_structure_id_empty_new (topology_structure_name);
gst_structure_id_set (u, topology_caps, GST_TYPE_CAPS, chain->endcaps,
NULL);