playsink: Hold a reference to the soft volume element
authorJan Schmidt <jan@centricular.com>
Fri, 30 Sep 2022 16:33:49 +0000 (02:33 +1000)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 3 Oct 2022 18:56:41 +0000 (18:56 +0000)
commite36440e7bb19f9a96058aab893866a824dd2e3d2
tree8291d5ad13a836d35961cdc81888b8046a98a569
parenteef76a949171205c640b1f15ceac76e4da93dc79
playsink: Hold a reference to the soft volume element

Always hold a reference to the soft volume element
provided by the playsinkaudioconvert bin helper, the
same as when volume is provided by a sink element,
or the soft volume element gets unreffed too soon.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3108>
subprojects/gst-plugins-base/gst/playback/gstplaysink.c
subprojects/gst-plugins-base/gst/playback/gstplaysinkaudioconvert.c
subprojects/gst-plugins-base/gst/playback/gstplaysinkaudioconvert.h