From bcd06ea52759b723879499695661d43039e062d6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 23 Feb 2010 17:24:03 +0100 Subject: [PATCH] rtpjitterbuffer: Reset skew detection after instantiating the jitterbuffer ...not only when going to READY. This sets high_level and friends to a more useful value. --- gst/rtpmanager/gstrtpjitterbuffer.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gst/rtpmanager/gstrtpjitterbuffer.c b/gst/rtpmanager/gstrtpjitterbuffer.c index 9df0400..6d29495 100644 --- a/gst/rtpmanager/gstrtpjitterbuffer.c +++ b/gst/rtpmanager/gstrtpjitterbuffer.c @@ -469,6 +469,11 @@ gst_rtp_jitter_buffer_init (GstRtpJitterBuffer * jitterbuffer, priv->jbuf_lock = g_mutex_new (); priv->jbuf_cond = g_cond_new (); + /* reset skew detection initialy */ + rtp_jitter_buffer_reset_skew (priv->jbuf); + rtp_jitter_buffer_set_delay (priv->jbuf, priv->latency_ns); + rtp_jitter_buffer_set_buffering (priv->jbuf, FALSE); + priv->srcpad = gst_pad_new_from_static_template (&gst_rtp_jitter_buffer_src_template, "src"); -- 2.7.4