mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
timer: fix compilation on arm
This commit is contained in:
parent
12464ed1bb
commit
6bc451cf6d
1 changed files with 5 additions and 4 deletions
|
|
@ -27,8 +27,8 @@ static void rearm_timer(struct pw_timer_queue *queue)
|
|||
}
|
||||
if (timeout != queue->next_timeout) {
|
||||
if (timeout)
|
||||
pw_log_debug("%p: arming with timeout %ld.%09ld", queue,
|
||||
timeout->tv_sec, timeout->tv_nsec);
|
||||
pw_log_debug("%p: arming with timeout %"PRIi64, queue,
|
||||
(int64_t)SPA_TIMESPEC_TO_NSEC(timeout));
|
||||
else
|
||||
pw_log_debug("%p: disarming (no entries)", queue);
|
||||
|
||||
|
|
@ -162,8 +162,9 @@ int pw_timer_queue_add(struct pw_timer_queue *queue, struct pw_timer *timer,
|
|||
timer->callback = callback;
|
||||
timer->data = data;
|
||||
|
||||
pw_log_debug("%p: adding timer %p with timeout %ld.%09ld",
|
||||
queue, timer, timeout.tv_sec, timeout.tv_nsec);
|
||||
pw_log_debug("%p: adding timer %p with timeout %"PRIi64,
|
||||
queue, timer, (int64_t)SPA_TIMESPEC_TO_NSEC(&timeout));
|
||||
|
||||
|
||||
/* Insert timer in sorted order (earliest timeout first) */
|
||||
spa_list_for_each(iter, &queue->entries, link) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue