mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
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:
parent
12be1e6fc5
commit
60d5d08fbb
1 changed files with 2 additions and 1 deletions
|
@ -3443,7 +3443,8 @@ gst_decode_chain_get_topology (GstDecodeChain * chain)
|
||||||
u = gst_structure_id_empty_new (topology_structure_name);
|
u = gst_structure_id_empty_new (topology_structure_name);
|
||||||
|
|
||||||
/* Now at the last element */
|
/* 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);
|
s = gst_structure_id_empty_new (topology_structure_name);
|
||||||
gst_structure_id_set (u, topology_caps, GST_TYPE_CAPS, chain->endcaps,
|
gst_structure_id_set (u, topology_caps, GST_TYPE_CAPS, chain->endcaps,
|
||||||
NULL);
|
NULL);
|
||||||
|
|
Loading…
Reference in a new issue