glvideomixer: Keep a reference to the underlying pad
authorThibault Saunier <tsaunier@igalia.com>
Fri, 10 Feb 2023 11:20:38 +0000 (08:20 -0300)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 15 Feb 2023 03:11:03 +0000 (03:11 +0000)
commitb46360896ce1e70f9d756373e8dacfa84bbe5f8f
tree7c372b99c9b3c8f99439b06b4f29d85706691913
parentae213c1c59b0949d4bf9fe80e3a624f6b3e93877
glvideomixer: Keep a reference to the underlying pad

There was cases where we were accessing the pad while it was already
destroyed. Ensure it can't happen by owning a ref on it.

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