multiqueue: Fix overflow on get_buffering_level()

guint64 denominator factor for gst_util_uint64_scale_int() can cause overflow

https://bugzilla.gnome.org/show_bug.cgi?id=775921
This commit is contained in:
Seungha Yang 2016-12-10 18:38:32 +09:00 committed by Sebastian Dröge
parent a52f5d73bd
commit 66f46a0df1

View file

@ -1133,7 +1133,7 @@ get_buffering_level (GstSingleQueue * sq)
buffering_level = 0;
if (sq->max_size.time > 0) {
tmp =
gst_util_uint64_scale_int (sq->cur_time,
gst_util_uint64_scale (sq->cur_time,
MAX_BUFFERING_LEVEL, sq->max_size.time);
buffering_level = MAX (buffering_level, tmp);
}