gstglmixerbin: minor refactor of _find_element_pad_template
authorCamilo Celis Guzman <camilo@pexip.com>
Mon, 18 Apr 2022 09:53:45 +0000 (18:53 +0900)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 20 Apr 2022 07:04:44 +0000 (07:04 +0000)
commit4c0d64dd1088c1c365143b430017317faaa133e1
treec3b8ff6400809ccd503296f8d3a2e1595452bc82
parent8707d0cb2608705018e3c02658a75c7ab23bb972
gstglmixerbin: minor refactor of _find_element_pad_template

As suggested by @slomo, make the loop more readable and prevent returning
a garbage value to the caller from the previous implementation.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2232>
subprojects/gst-plugins-base/ext/gl/gstglmixerbin.c