From 1a2f253c3a25df860ea5730be61d9ab0ef9b34b0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 20 Mar 2015 18:21:57 +0100 Subject: [PATCH] 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 --- gst/rtpmanager/gstrtpjitterbuffer.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.7.4