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:
Robert Mader 2025-10-30 16:22:52 +01:00 committed by Wim Taymans
parent e9a89822f8
commit 77a5100280

View file

@ -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;