mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-02 06:31:08 +00:00
playsink: Fix volume leak
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4459>
This commit is contained in:
parent
63ccf85049
commit
c6bb20bba8
1 changed files with 2 additions and 3 deletions
|
@ -4998,9 +4998,8 @@ gst_play_sink_change_state (GstElement * element, GstStateChange transition)
|
||||||
/* fall through */
|
/* fall through */
|
||||||
case GST_STATE_CHANGE_READY_TO_NULL:
|
case GST_STATE_CHANGE_READY_TO_NULL:
|
||||||
GST_PLAY_SINK_LOCK (playsink);
|
GST_PLAY_SINK_LOCK (playsink);
|
||||||
if (playsink->audiochain && playsink->audiochain->sink_volume) {
|
if (playsink->audiochain) {
|
||||||
/* remove our links to the volume elements when they were
|
/* remove our links to the volume elements */
|
||||||
* provided by a sink */
|
|
||||||
disconnect_audio_chain (playsink->audiochain, playsink);
|
disconnect_audio_chain (playsink->audiochain, playsink);
|
||||||
if (playsink->audiochain->volume)
|
if (playsink->audiochain->volume)
|
||||||
gst_object_unref (playsink->audiochain->volume);
|
gst_object_unref (playsink->audiochain->volume);
|
||||||
|
|
Loading…
Reference in a new issue