mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-27 18:50:48 +00:00
do not return SUCCESS if a bin's child can't change state. This fix breaks old gstparse
Original commit message from CVS: do not return SUCCESS if a bin's child can't change state. This fix breaks old gstparse
This commit is contained in:
parent
ff856af64a
commit
64f71f6961
1 changed files with 1 additions and 6 deletions
|
@ -707,15 +707,10 @@ gst_bin_change_state (GstElement * element)
|
|||
|
||||
gst_element_set_state (child, old_child_state);
|
||||
if (GST_ELEMENT_SCHED (child) == GST_ELEMENT_SCHED (element)) {
|
||||
/* reset to what is was */
|
||||
/* try to reset it to what is was */
|
||||
GST_STATE_PENDING (element) = old_state;
|
||||
|
||||
gst_bin_change_state (element);
|
||||
/* see if the old state was set */
|
||||
if (GST_STATE (element) == old_state)
|
||||
return GST_STATE_SUCCESS;
|
||||
|
||||
/* something wacky happened, we can't even go back */
|
||||
return GST_STATE_FAILURE;
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue