mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
loop: improve update_timer
Handle NULL time as now when specifying an interval.
This commit is contained in:
parent
61885b00b6
commit
73ec9e2d24
2 changed files with 8 additions and 5 deletions
|
|
@ -505,8 +505,13 @@ loop_update_timer (SpaSource *source,
|
|||
int flags = 0;
|
||||
|
||||
spa_zero (its);
|
||||
if (value)
|
||||
if (value) {
|
||||
its.it_value = *value;
|
||||
}
|
||||
else if (interval) {
|
||||
its.it_value = *interval;
|
||||
absolute = true;
|
||||
}
|
||||
if (interval)
|
||||
its.it_interval = *interval;
|
||||
if (absolute)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue