aggregator: Make parsing of explicit sink pad names more robust
authorSebastian Dröge <sebastian@centricular.com>
Mon, 8 Jul 2019 16:09:03 +0000 (19:09 +0300)
committerTim-Philipp Müller <tim@centricular.com>
Thu, 8 Aug 2019 20:03:42 +0000 (21:03 +0100)
commit99aeb91cc051bc79ea9299369f00d6a553299419
treec50470f17664b3f17181327e6dd1d66cebb7bd92
parent53bf06c08814ff9ac3968d47daf11a395cf26a01
aggregator: Make parsing of explicit sink pad names more robust

When passing "sink_%d" twice to aggregator before it would create two
pads called "sink_0", because it failed to parse "%d" as integer and
used 0 instead then.

Instead validate that parsing was actually successful and also don't
even try to parse if the requested pad name contains a '%'.
libs/gst/base/gstaggregator.c