Commit 8d021b6e authored by Wim Taymans's avatar Wim Taymans
Browse files

rtpjitterbuffer: don't update time when unscheduled

Don't try to estimate the current time when we got unscheduled.
parent 65606a25
...@@ -2505,7 +2505,8 @@ wait_next_timeout (GstRtpJitterBuffer * jitterbuffer) ...@@ -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");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment