From 8d021b6ede08c9a55b485be692d1e20634b14e19 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 18 Sep 2013 16:31:26 +0200 Subject: [PATCH] rtpjitterbuffer: don't update time when unscheduled Don't try to estimate the current time when we got unscheduled. --- gst/rtpmanager/gstrtpjitterbuffer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gst/rtpmanager/gstrtpjitterbuffer.c b/gst/rtpmanager/gstrtpjitterbuffer.c index 2862795817..4fcfb3c890 100644 --- a/gst/rtpmanager/gstrtpjitterbuffer.c +++ b/gst/rtpmanager/gstrtpjitterbuffer.c @@ -2505,7 +2505,8 @@ wait_next_timeout (GstRtpJitterBuffer * jitterbuffer) gst_clock_id_unref (id); priv->clock_id = NULL; - now = timer_timeout + MAX (clock_jitter, 0); + if (ret != GST_CLOCK_UNSCHEDULED) + now = timer_timeout + MAX (clock_jitter, 0); } else { /* no timers, wait for activity */ GST_DEBUG_OBJECT (jitterbuffer, "waiting");