From 048e5b6fbe8289b28c692bd64d7dbbb3b2a48d55 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 6 Oct 2009 13:30:54 +0200 Subject: [PATCH] jitterbuffer: report level using high watermark --- gst/rtpmanager/rtpjitterbuffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/rtpmanager/rtpjitterbuffer.c b/gst/rtpmanager/rtpjitterbuffer.c index 532cc13edc..00ee0acc2b 100644 --- a/gst/rtpmanager/rtpjitterbuffer.c +++ b/gst/rtpmanager/rtpjitterbuffer.c @@ -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;