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:
Sebastian Dröge 2015-10-17 21:47:07 +03:00
parent d50b713f44
commit 92061cb19e
2 changed files with 7 additions and 2 deletions

View file

@ -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 */

View file

@ -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 */