From 77a51002804ed2281f9d116979d5858f7f3eee37 Mon Sep 17 00:00:00 2001 From: Robert Mader Date: Thu, 30 Oct 2025 16:22:52 +0100 Subject: [PATCH] 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. --- src/gst/gstpipewireclock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gst/gstpipewireclock.c b/src/gst/gstpipewireclock.c index 701bb6ff0..10607c3e7 100644 --- a/src/gst/gstpipewireclock.c +++ b/src/gst/gstpipewireclock.c @@ -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;