summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorSeungha Yang <sh.yang@lge.com>2016-12-10 18:38:32 +0900
committerSebastian Dröge <sebastian@centricular.com>2016-12-11 13:30:52 +0200
commitce11ddeb0c3be4ce51a0033c59baefb12f368cdb (patch)
treeee5293fb4d409a845c7c13901e6c31fb28e3bf22 /plugins
parent16bd0e7bac653f849bcf34955caa8c3f375e04a3 (diff)
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
Diffstat (limited to 'plugins')
-rw-r--r--plugins/elements/gstmultiqueue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/elements/gstmultiqueue.c b/plugins/elements/gstmultiqueue.c
index d6b296781..d59acaa83 100644
--- a/plugins/elements/gstmultiqueue.c
+++ b/plugins/elements/gstmultiqueue.c
@@ -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);
}