Skip to content

urisourebin: make sure output slot is being removed when no available pending pad

Output slot has two cases to receive fake EOS. a) actual EOS from demuxer's pad b) demuxer's pad-removed.

When a) happened, slot is still marked as linked. When b) happend, slot will be marked as unlinked.

Let's pretend demuxer's srcpad is removed and there's no available pending pad in case of TRICKMODE_NO_AUDIO.

Custom-eos from a) and b) are pushed to output slot (e.g queue's sinkpad) in parallel. One of them is discarded and it recognizes actual EOS and does not remove linked output slot.

It may cause abnormal behaviour when demuxer's srcpad is added again not in TRICKMODE_NO_AUDIO.

Edited by Tim-Philipp Müller

Merge request reports