jitterbuffer: report level using high watermark
authorWim Taymans <wim.taymans@collabora.co.uk>
Tue, 6 Oct 2009 11:30:54 +0000 (13:30 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Fri, 12 Feb 2010 16:22:54 +0000 (17:22 +0100)
gst/rtpmanager/rtpjitterbuffer.c

index 532cc13edc41dff26f793c2aad3b6a314e1d36e3..00ee0acc2bb8b943d62bccf4a643133b2f1a9583 100644 (file)
@@ -250,7 +250,7 @@ update_buffer_level (RTPJitterBuffer * jbuf, gint * percent)
     gint perc;
 
     if (jbuf->buffering) {
-      perc = (jbuf->level * 100 / jbuf->delay);
+      perc = (jbuf->level * 100 / jbuf->high_level);
       perc = MIN (perc, 100);
     } else {
       perc = 100;