mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
timer-queue: delete next timer event when it got fired
When we fire the timer event, mark the next timeout as NULL because nothing else is going to timeout anymore until we rearm the timer. This has the effect that if we cancel and add the same timer from the callback that we will reprogram the timer with the new timeout instead of thinking the item as already programmed.
This commit is contained in:
parent
9be06c46b7
commit
678e571d80
1 changed files with 1 additions and 0 deletions
|
|
@ -58,6 +58,7 @@ static void timer_timeout(void *user_data, uint64_t expirations)
|
|||
pw_log_debug("%p: timer was rearmed", queue);
|
||||
return;
|
||||
}
|
||||
queue->next_timeout = NULL;
|
||||
|
||||
pw_log_debug("%p: processing timer %p", queue, timer);
|
||||
timer->queue = NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue