tsmux: When selecting random PIDs, name the pads according to those PIDs
authorSebastian Dröge <sebastian@centricular.com>
Thu, 10 Jun 2021 08:42:24 +0000 (11:42 +0300)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 23 Jun 2021 14:59:43 +0000 (14:59 +0000)
commit52a0c3659859f3f7896620042ba49bf2274a072a
treeda22cb1ddad000859419d35b826b922fd53e634d
parentba26a5aea87f4fd3b913908d8865448d14e5d694
tsmux: When selecting random PIDs, name the pads according to those PIDs

Some elements will make use of the automatically generated names to
create new pads in future muxer instances, for example splitmuxsink.

Previously we would've created a pad with a random pid that would become
"sink_0", and then on a new muxer instance a pad "sink_0" and tsmux
would've then failed because 0 is not a valid PID.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2318>
gst/mpegtsmux/gstbasetsmux.c