mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 20:59:44 +00:00
gst/playback/gstplaybasebin.c: Fix leak.
Original commit message from CVS: * gst/playback/gstplaybasebin.c: (group_destroy), (gst_play_base_bin_change_state): Fix leak. Handle case where playbasebin is now ASYNC because decodebin is.
This commit is contained in:
parent
19efac956e
commit
d108bc0882
2 changed files with 10 additions and 2 deletions
|
@ -1,3 +1,11 @@
|
|||
2005-10-20 Wim Taymans <wim@fluendo.com>
|
||||
|
||||
* gst/playback/gstplaybasebin.c: (group_destroy),
|
||||
(gst_play_base_bin_change_state):
|
||||
Fix leak.
|
||||
Handle case where playbasebin is now ASYNC because
|
||||
decodebin is.
|
||||
|
||||
2005-10-19 Tim-Philipp Müller <tim at centricular dot net>
|
||||
|
||||
* gst/audioconvert/Makefile.am:
|
||||
|
|
|
@ -311,7 +311,7 @@ group_destroy (GstPlayBaseGroup * group)
|
|||
fakesrc = (GstElement *) g_object_get_data (G_OBJECT (pad), "fakesrc");
|
||||
if (fakesrc != NULL) {
|
||||
GST_LOG ("removing fakesrc from %s:%s",
|
||||
GST_PAD_NAME (pad), GST_ELEMENT_NAME (gst_pad_get_parent (pad)));
|
||||
GST_PAD_NAME (pad), GST_ELEMENT_NAME (GST_PAD_PARENT (pad)));
|
||||
gst_element_set_state (fakesrc, GST_STATE_NULL);
|
||||
gst_bin_remove (GST_BIN (play_base_bin), fakesrc);
|
||||
}
|
||||
|
@ -1701,7 +1701,7 @@ gst_play_base_bin_change_state (GstElement * element, GstStateChange transition)
|
|||
|
||||
switch (transition) {
|
||||
case GST_STATE_CHANGE_READY_TO_PAUSED:
|
||||
if (ret == GST_STATE_CHANGE_SUCCESS) {
|
||||
if (ret != GST_STATE_CHANGE_FAILURE) {
|
||||
finish_source (play_base_bin);
|
||||
} else {
|
||||
/* clean up leftover groups */
|
||||
|
|
Loading…
Reference in a new issue