loop: improve update_timer

Handle NULL time as now when specifying an interval.
This commit is contained in:
Wim Taymans 2017-03-30 09:18:26 +02:00
parent 61885b00b6
commit 73ec9e2d24
2 changed files with 8 additions and 5 deletions

View file

@ -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)