jitterbuffer: report level using high watermark

This commit is contained in:
Wim Taymans 2009-10-06 13:30:54 +02:00
parent 8d814f3782
commit 048e5b6fbe

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