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
@ -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>
|
2005-10-02 Johan Dahlin <johan@gnome.org>
|
||||||
|
|
||||||
* ext/gnomevfs/gstgnomevfssrc.c (gst_gnomevfssrc_uri_get_protocols):
|
* 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);
|
gst_object_unref (sinkpad);
|
||||||
/* this element did not work, remove it again and continue trying
|
/* this element did not work, remove it again and continue trying
|
||||||
* other elements, the element will be disposed. */
|
* other elements, the element will be disposed. */
|
||||||
|
gst_element_set_state (element, GST_STATE_NULL);
|
||||||
gst_bin_remove (GST_BIN (decode_bin), element);
|
gst_bin_remove (GST_BIN (decode_bin), element);
|
||||||
} else {
|
} else {
|
||||||
const gchar *klass;
|
const gchar *klass;
|
||||||
@ -764,6 +765,8 @@ remove_element_chain (GstDecodeBin * decode_bin, GstPad * pad)
|
|||||||
|
|
||||||
g_list_free (int_links);
|
g_list_free (int_links);
|
||||||
|
|
||||||
|
gst_element_set_state (elem, GST_STATE_NULL);
|
||||||
|
|
||||||
gst_bin_remove (GST_BIN (decode_bin), elem);
|
gst_bin_remove (GST_BIN (decode_bin), elem);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user