From 6c584bc8337da0a19287d51eaf05c608711b9ef5 Mon Sep 17 00:00:00 2001 From: Mark Nauwelaerts Date: Sun, 4 May 2014 13:37:46 +0200 Subject: [PATCH] rtpjitterbuffer: avoid stall by corrupted seqnum accounting --- gst/rtpmanager/gstrtpjitterbuffer.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gst/rtpmanager/gstrtpjitterbuffer.c b/gst/rtpmanager/gstrtpjitterbuffer.c index 1459e91..62d7228 100644 --- a/gst/rtpmanager/gstrtpjitterbuffer.c +++ b/gst/rtpmanager/gstrtpjitterbuffer.c @@ -2826,7 +2826,10 @@ do_deadline_timeout (GstRtpJitterBuffer * jitterbuffer, TimerData * timer, GST_INFO_OBJECT (jitterbuffer, "got deadline timeout"); - priv->next_seqnum = timer->seqnum; + /* timer seqnum might have been obsoleted by caps seqnum-base, + * only mess with current ongoing seqnum if still unknown */ + if (priv->next_seqnum == -1) + priv->next_seqnum = timer->seqnum; remove_timer (jitterbuffer, timer); JBUF_SIGNAL_EVENT (priv); -- 2.7.4