rtpjitterbuffer: Make the next output buffer discont after resetting the jitterbuffer

Resetting the jitterbuffer drops all packets and other things, and will cause
a discontinuity in the packets received by the depayloaders. They should now
also flush anything they had pending as the new data will start at a different
position.

https://bugzilla.gnome.org/show_bug.cgi?id=739868
This commit is contained in:
Sebastian Dröge 2015-03-20 18:21:57 +01:00
parent 7fbd1b472f
commit 1a2f253c3a

View file

@ -2300,6 +2300,7 @@ gst_rtp_jitter_buffer_chain (GstPad * pad, GstObject * parent,
(GFunc) free_item_and_retain_events, &events); (GFunc) free_item_and_retain_events, &events);
rtp_jitter_buffer_reset_skew (priv->jbuf); rtp_jitter_buffer_reset_skew (priv->jbuf);
remove_all_timers (jitterbuffer); remove_all_timers (jitterbuffer);
priv->discont = TRUE;
priv->last_popped_seqnum = -1; priv->last_popped_seqnum = -1;
priv->next_seqnum = seqnum; priv->next_seqnum = seqnum;
do_next_seqnum = TRUE; do_next_seqnum = TRUE;