mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
- 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:
parent
0b1607785b
commit
e5dc4ede3a
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue