mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 23:06:49 +00:00
playsink: Immediately error out if state change fails
Otherwise we chain up to the parent class' change_state function and might override the failure with SUCCESS. https://bugzilla.gnome.org/show_bug.cgi?id=756611
This commit is contained in:
parent
92061cb19e
commit
87dbe54797
1 changed files with 3 additions and 1 deletions
|
@ -4769,8 +4769,10 @@ gst_play_sink_change_state (GstElement * element, GstStateChange transition)
|
||||||
ret = GST_STATE_CHANGE_ASYNC;
|
ret = GST_STATE_CHANGE_ASYNC;
|
||||||
|
|
||||||
/* block all pads here */
|
/* block all pads here */
|
||||||
if (!gst_play_sink_reconfigure (playsink))
|
if (!gst_play_sink_reconfigure (playsink)) {
|
||||||
ret = GST_STATE_CHANGE_FAILURE;
|
ret = GST_STATE_CHANGE_FAILURE;
|
||||||
|
goto activate_failed;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case GST_STATE_CHANGE_PAUSED_TO_READY:
|
case GST_STATE_CHANGE_PAUSED_TO_READY:
|
||||||
/* unblock all pads here */
|
/* unblock all pads here */
|
||||||
|
|
Loading…
Reference in a new issue