mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-02-25 01:40:36 -05:00
Fix compilation with -Werror=float-conversion
Better make the conversions explicit so that we don't get any surprises. Fixes #4065
This commit is contained in:
parent
50870aac57
commit
1ae4374ccf
71 changed files with 286 additions and 284 deletions
|
|
@ -598,7 +598,7 @@ again:
|
|||
-SPA_CLAMP(err_nsec, -20*SPA_NSEC_PER_MSEC, 20*SPA_NSEC_PER_MSEC)
|
||||
* this->rate / SPA_NSEC_PER_SEC);
|
||||
tcorr = SPA_MIN(device_elapsed, SPA_NSEC_PER_SEC) * (corr - 1);
|
||||
sync->device_time += tcorr;
|
||||
sync->device_time += (uint64_t)tcorr;
|
||||
|
||||
/* reset if too much off */
|
||||
if (err_nsec < -50 * SPA_NSEC_PER_MSEC ||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue