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)
committerSebastian Dröge <slomo@coaxion.net>
Tue, 9 Jul 2019 08:09:29 +0000 (08:09 +0000)
commit09909d37bdcac38432c1de2ff7b4b0a6a155e14e
tree1cf785de87ce60a68d585cb3fa787fca84b69c95
parent35294f365e71bd07b33d112d7493614c6dbd74ec
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