mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 17:50:36 +00:00
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:
parent
16bd0e7bac
commit
ce11ddeb0c
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue