jitterbuffer: avoid using wrong clock-rate

Check for a valid clock-rate before attempting to estimate the npt
stop time.
This commit is contained in:
Wim Taymans 2009-11-25 10:38:23 -06:00 committed by Wim Taymans
parent 5682e2bf01
commit 8070ae967b

View file

@ -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;