Commit 5c0a77ec authored by Olivier Crête's avatar Olivier Crête

rtpbin: Return NO_PREROLL

It may contain a jitterbuffer which is no-preroll, if there is no
other element preventing the preroll (like a live source), the pipeline
will never start.
parent d3662bae
Pipeline #14948 failed with stages
in 9 minutes and 22 seconds
......@@ -3225,6 +3225,13 @@ gst_rtp_bin_change_state (GstElement * element, GstStateChange transition)
res = GST_ELEMENT_CLASS (parent_class)->change_state (element, transition);
switch (transition) {
case GST_STATE_CHANGE_READY_TO_PAUSED:
/* We contain a rtpjitterbuffer which is a no preroll element, but we
* do the set-state on our own and don't chain up the no-preroll, so do it here.
*/
if (res != GST_STATE_CHANGE_FAILURE)
res = GST_STATE_CHANGE_NO_PREROLL;
break;
case GST_STATE_CHANGE_PLAYING_TO_PAUSED:
break;
case GST_STATE_CHANGE_PAUSED_TO_READY:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment