rtpjitterbuffer: don't update time when unscheduled

Don't try to estimate the current time when we got unscheduled.
This commit is contained in:
Wim Taymans 2013-09-18 16:31:26 +02:00
parent 65606a25bf
commit 8d021b6ede

View file

@ -2505,7 +2505,8 @@ wait_next_timeout (GstRtpJitterBuffer * jitterbuffer)
gst_clock_id_unref (id); gst_clock_id_unref (id);
priv->clock_id = NULL; priv->clock_id = NULL;
now = timer_timeout + MAX (clock_jitter, 0); if (ret != GST_CLOCK_UNSCHEDULED)
now = timer_timeout + MAX (clock_jitter, 0);
} else { } else {
/* no timers, wait for activity */ /* no timers, wait for activity */
GST_DEBUG_OBJECT (jitterbuffer, "waiting"); GST_DEBUG_OBJECT (jitterbuffer, "waiting");