jitterbuffer: prevent overflow in EOS estimation

Use a guint64 instead of a guint to hold a 64bit value to prevent completely
bogues EOS estimation values due to overflows.
This commit is contained in:
Wim Taymans 2009-04-15 18:14:48 +02:00 committed by Tim-Philipp Müller
parent d6c623e90c
commit 64046416cc

View file

@ -1623,7 +1623,7 @@ push_buffer:
elapsed = gst_util_uint64_scale_int (elapsed, GST_SECOND, priv->clock_rate); elapsed = gst_util_uint64_scale_int (elapsed, GST_SECOND, priv->clock_rate);
if (elapsed > priv->last_elapsed) { if (elapsed > priv->last_elapsed) {
guint left; guint64 left;
priv->last_elapsed = elapsed; priv->last_elapsed = elapsed;