From: Sebastian Dröge Date: Tue, 23 Feb 2010 16:24:03 +0000 (+0100) Subject: rtpjitterbuffer: Reset skew detection after instantiating the jitterbuffer X-Git-Tag: RELEASE-0.10.19~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bcd06ea52759b723879499695661d43039e062d6;p=platform%2Fupstream%2Fgst-plugins-good.git 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. --- 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");