mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-07 12:21:17 +00:00
playbin/uridecodebin: Always post async-done immediately if we're a live pipeline
Not only if the base class told us, but also if one of our own elements did. https://bugzilla.gnome.org/show_bug.cgi?id=756611
This commit is contained in:
parent
d50b713f44
commit
92061cb19e
2 changed files with 7 additions and 2 deletions
|
@ -5774,6 +5774,9 @@ gst_play_bin_change_state (GstElement * element, GstStateChange transition)
|
|||
break;
|
||||
}
|
||||
|
||||
if (ret == GST_STATE_CHANGE_NO_PREROLL)
|
||||
do_async_done (playbin);
|
||||
|
||||
return ret;
|
||||
|
||||
/* ERRORS */
|
||||
|
|
|
@ -2752,8 +2752,6 @@ gst_uri_decode_bin_change_state (GstElement * element,
|
|||
ret = GST_ELEMENT_CLASS (parent_class)->change_state (element, transition);
|
||||
if (ret == GST_STATE_CHANGE_FAILURE)
|
||||
goto setup_failed;
|
||||
else if (ret == GST_STATE_CHANGE_NO_PREROLL)
|
||||
do_async_done (decoder);
|
||||
|
||||
switch (transition) {
|
||||
case GST_STATE_CHANGE_READY_TO_PAUSED:
|
||||
|
@ -2799,6 +2797,10 @@ gst_uri_decode_bin_change_state (GstElement * element,
|
|||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
if (ret == GST_STATE_CHANGE_NO_PREROLL)
|
||||
do_async_done (decoder);
|
||||
|
||||
return ret;
|
||||
|
||||
/* ERRORS */
|
||||
|
|
Loading…
Reference in a new issue