mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
rtpjitterbuffer: don't divide by 0
This commit is contained in:
parent
68fc03fd76
commit
9f34b89245
1 changed files with 1 additions and 1 deletions
|
@ -283,7 +283,7 @@ update_buffer_level (RTPJitterBuffer * jbuf, gint * percent)
|
|||
if (post) {
|
||||
gint perc;
|
||||
|
||||
if (jbuf->buffering) {
|
||||
if (jbuf->buffering && (jbuf->high_level != 0)) {
|
||||
perc = (level * 100 / jbuf->high_level);
|
||||
perc = MIN (perc, 100);
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue