glvideomixer: hold extra pad ref while calling parent
authorMatthew Waters <matthew@centricular.com>
Thu, 3 Jun 2021 05:57:39 +0000 (15:57 +1000)
committerMatthew Waters <matthew@centricular.com>
Thu, 3 Jun 2021 05:58:39 +0000 (15:58 +1000)
commit3bbcfe9c23e7f4c80a26ef38564e88ed99733d75
treebb6206269c74ee610281a9fd8c45512ae5d0e547
parentf647840685ac818d2df6645b5090bf6b624e34f0
glvideomixer: hold extra pad ref while calling parent

Our subsequent cleanup needs a ref on the pad and calling the parent may
release the last reference and could cause a use-after-free.

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