From: Sebastian Dröge Date: Fri, 20 Mar 2015 17:21:57 +0000 (+0100) Subject: rtpjitterbuffer: Make the next output buffer discont after resetting the jitterbuffer X-Git-Tag: 1.19.3~509^2~3702 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1a2f253c3a25df860ea5730be61d9ab0ef9b34b0;p=platform%2Fupstream%2Fgstreamer.git 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 --- diff --git a/gst/rtpmanager/gstrtpjitterbuffer.c b/gst/rtpmanager/gstrtpjitterbuffer.c index c095920..6c3c9b8 100644 --- a/gst/rtpmanager/gstrtpjitterbuffer.c +++ b/gst/rtpmanager/gstrtpjitterbuffer.c @@ -2300,6 +2300,7 @@ gst_rtp_jitter_buffer_chain (GstPad * pad, GstObject * parent, (GFunc) free_item_and_retain_events, &events); rtp_jitter_buffer_reset_skew (priv->jbuf); remove_all_timers (jitterbuffer); + priv->discont = TRUE; priv->last_popped_seqnum = -1; priv->next_seqnum = seqnum; do_next_seqnum = TRUE;