mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-07 13:30:09 -05:00
gst: avoid clock overflow
This commit is contained in:
parent
f464b8ee45
commit
0f66716de9
1 changed files with 3 additions and 1 deletions
|
|
@ -54,7 +54,9 @@ 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);
|
||||
GST_DEBUG ("%"PRId64", %d/%d", t.ticks, t.rate.num, t.rate.denom);
|
||||
|
||||
result = gst_util_uint64_scale_int (t.ticks * GST_SECOND, t.rate.num, t.rate.denom);
|
||||
|
||||
GST_DEBUG ("%"PRId64", %d/%d %"PRId64, t.ticks, t.rate.num, t.rate.denom, result);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue