- marked piece of wrong code in the state change function with a FIXME

Original commit message from CVS:
- marked piece of wrong code in the state change function with a FIXME
This commit is contained in:
Wim Taymans 2003-06-03 21:53:15 +00:00
parent 0b1607785b
commit e5dc4ede3a

View file

@ -689,6 +689,8 @@ gst_bin_change_state (GstElement * element)
GST_ELEMENT_NAME (child), pending, gst_element_state_get_name (pending));
gst_element_set_state (child, old_child_state);
/* FIXME, this is legacy code, a failed state change of a child should
* return a failure in all cases */
if (GST_ELEMENT_SCHED (child) == GST_ELEMENT_SCHED (element)) {
/* try to reset it to what is was */
GST_STATE_PENDING (element) = old_state;