parse-launch: warn when still waiting to plug sub-pipelines after no-more-pads
authorStefan Sauer <ensonic@users.sf.net>
Sat, 2 Jan 2016 18:42:17 +0000 (19:42 +0100)
committerStefan Sauer <ensonic@users.sf.net>
Sun, 3 Jan 2016 21:58:06 +0000 (22:58 +0100)
commit46a851b2799b53c24a3697d1ffdf4026028d453a
treeaf3430a3b57b016219fc9998c0cdde0b96084d51
parent7c992cfbe0c13e9755ab6ec96260830130f9c045
parse-launch: warn when still waiting to plug sub-pipelines after no-more-pads

The parse-launch API automagically handles dynamic pads and performs delayed
linking as needed, without any feedback about whether the linking succeeded or
not however. If a delayed dynamic link can't be completed for whatever reason,
parse-launch will simply wait in case a suitable pad appears later. This may
never happen though, in which case the pipeline may just hang forever.

Try to improve this by connecting to the "no-more-pads" signal of any element
with dynamic pads and posting a warning message for the related outstanding
dynamic links when "no-more-pads" is emitted.

Fixes #760003
gst/gstparse.h
gst/parse/grammar.y