mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 15:27:07 +00:00
gst/playback/gstdecodebin.c (try_to_link_1) set element to NULL before removing it.
Original commit message from CVS: 2005-10-03 Andy Wingo <wingo@pobox.com> * gst/playback/gstdecodebin.c (try_to_link_1) (remove_element_chain): set element to NULL before removing it.
This commit is contained in:
parent
cbb8f9f637
commit
c1d25d47fa
2 changed files with 8 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2005-10-03 Andy Wingo <wingo@pobox.com>
|
||||
|
||||
* gst/playback/gstdecodebin.c (try_to_link_1)
|
||||
(remove_element_chain): set element to NULL before removing it.
|
||||
|
||||
2005-10-02 Johan Dahlin <johan@gnome.org>
|
||||
|
||||
* ext/gnomevfs/gstgnomevfssrc.c (gst_gnomevfssrc_uri_get_protocols):
|
||||
|
|
|
@ -601,6 +601,7 @@ try_to_link_1 (GstDecodeBin * decode_bin, GstPad * pad, GList * factories)
|
|||
gst_object_unref (sinkpad);
|
||||
/* this element did not work, remove it again and continue trying
|
||||
* other elements, the element will be disposed. */
|
||||
gst_element_set_state (element, GST_STATE_NULL);
|
||||
gst_bin_remove (GST_BIN (decode_bin), element);
|
||||
} else {
|
||||
const gchar *klass;
|
||||
|
@ -764,6 +765,8 @@ remove_element_chain (GstDecodeBin * decode_bin, GstPad * pad)
|
|||
|
||||
g_list_free (int_links);
|
||||
|
||||
gst_element_set_state (elem, GST_STATE_NULL);
|
||||
|
||||
gst_bin_remove (GST_BIN (decode_bin), elem);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue