element: Fix requesting of pads with string templates
authorSebastian Dröge <sebastian@centricular.com>
Mon, 20 Jun 2022 13:45:19 +0000 (16:45 +0300)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 21 Jun 2022 06:00:15 +0000 (06:00 +0000)
commita3cbaa8209f6826251e20102161ba103233b1faa
tree266576da1ab8e056ed3ee14023d95379a38b80f1
parenta0404506850cf7b968ee6c5f08816173e452ad1b
element: Fix requesting of pads with string templates

Previously it was only possible to request them with the exact template
name, e.g. 'src_%s', but not with "instantiated" names that would match
this template, e.g.'src_foo_bar'.

This is now possible and a test was added for this, in addition to
fixing a previously invalid test.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2635>
subprojects/gstreamer/gst/gstelement.c
subprojects/gstreamer/tests/check/gst/gstelement.c