mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
gst: Use gst_util_uint64_scale instead of scale_int
GST_SECOND * t.rate.num can turn into a negative gint, resulting in assertions like: _gst_util_uint64_scale_int: assertion 'num >= 0' failed Just use the 64bit version instead.
This commit is contained in:
parent
e9a89822f8
commit
77a5100280
1 changed files with 1 additions and 1 deletions
|
|
@ -45,7 +45,7 @@ gst_pipewire_clock_get_internal_time (GstClock * clock)
|
|||
t.rate.denom == 0)
|
||||
return pclock->last_time;
|
||||
|
||||
result = gst_util_uint64_scale_int (t.ticks, GST_SECOND * t.rate.num, t.rate.denom);
|
||||
result = gst_util_uint64_scale (t.ticks, GST_SECOND * t.rate.num, t.rate.denom);
|
||||
result += now - t.now;
|
||||
|
||||
result += pclock->time_offset;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue