From 8070ae967b20c2f4acf32962b8d70cb75c355c09 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 25 Nov 2009 10:38:23 -0600 Subject: [PATCH] jitterbuffer: avoid using wrong clock-rate Check for a valid clock-rate before attempting to estimate the npt stop time. --- gst/rtpmanager/gstrtpjitterbuffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/rtpmanager/gstrtpjitterbuffer.c b/gst/rtpmanager/gstrtpjitterbuffer.c index c37bd6b..1fce103 100644 --- a/gst/rtpmanager/gstrtpjitterbuffer.c +++ b/gst/rtpmanager/gstrtpjitterbuffer.c @@ -1637,7 +1637,7 @@ push_buffer: /* update the elapsed time when we need to check against the npt stop time. */ if (priv->npt_stop != -1 && priv->ext_timestamp != -1 - && priv->clock_base != -1) { + && priv->clock_base != -1 && priv->clock_rate > 0) { guint64 ext_time, elapsed, estimated; guint32 rtp_time; -- 2.7.4