mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
parent
64a25110dc
commit
c633004bf3
1 changed files with 6 additions and 2 deletions
|
|
@ -221,8 +221,11 @@ static void on_timeout(struct spa_source *source)
|
|||
spa_log_trace(this->log, "timeout");
|
||||
|
||||
if (spa_system_timerfd_read(this->data_system,
|
||||
this->timer_source.fd, &expirations) < 0)
|
||||
this->timer_source.fd, &expirations) < 0) {
|
||||
if (errno == EAGAIN)
|
||||
return;
|
||||
perror("read timerfd");
|
||||
}
|
||||
|
||||
nsec = this->next_time;
|
||||
|
||||
|
|
@ -818,7 +821,8 @@ impl_init(const struct spa_handle_factory *factory,
|
|||
|
||||
this->timer_source.func = on_timeout;
|
||||
this->timer_source.data = this;
|
||||
this->timer_source.fd = spa_system_timerfd_create(this->data_system, CLOCK_MONOTONIC, SPA_FD_CLOEXEC);
|
||||
this->timer_source.fd = spa_system_timerfd_create(this->data_system, CLOCK_MONOTONIC,
|
||||
SPA_FD_CLOEXEC | SPA_FD_NONBLOCK);
|
||||
this->timer_source.mask = SPA_IO_IN;
|
||||
this->timer_source.rmask = 0;
|
||||
this->timerspec.it_value.tv_sec = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue