mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
playbin: Don't leak input-selector sinkpads
https://bugzilla.gnome.org/show_bug.cgi?id=736861
This commit is contained in:
parent
3592bd577c
commit
2133a98eb1
1 changed files with 7 additions and 0 deletions
|
@ -1921,6 +1921,9 @@ gst_play_bin_set_current_video_stream (GstPlayBin * playbin, gint stream)
|
|||
g_object_set (combiner, "active-pad", sinkpad, NULL);
|
||||
}
|
||||
|
||||
if (old_sinkpad)
|
||||
gst_object_unref (old_sinkpad);
|
||||
|
||||
gst_object_unref (combiner);
|
||||
}
|
||||
gst_object_unref (sinkpad);
|
||||
|
@ -1987,6 +1990,10 @@ gst_play_bin_set_current_audio_stream (GstPlayBin * playbin, gint stream)
|
|||
/* activate the selected pad */
|
||||
g_object_set (combiner, "active-pad", sinkpad, NULL);
|
||||
}
|
||||
|
||||
if (old_sinkpad)
|
||||
gst_object_unref (old_sinkpad);
|
||||
|
||||
gst_object_unref (combiner);
|
||||
}
|
||||
gst_object_unref (sinkpad);
|
||||
|
|
Loading…
Reference in a new issue