node-driver, null-audio-sink: Fix EAGAIN check

spa_system_timerfd_read() returns -EAGAIN.
This commit is contained in:
Jonas Holmberg 2023-09-04 13:23:34 +02:00
parent 8e6d070148
commit 00ca590ff6
2 changed files with 2 additions and 2 deletions

View file

@ -241,7 +241,7 @@ static void on_timeout(struct spa_source *source)
if ((res = spa_system_timerfd_read(this->data_system, if ((res = spa_system_timerfd_read(this->data_system,
this->timer_source.fd, &expirations)) < 0) { this->timer_source.fd, &expirations)) < 0) {
if (res != EAGAIN) if (res != -EAGAIN)
spa_log_error(this->log, NAME " %p: timerfd error: %s", spa_log_error(this->log, NAME " %p: timerfd error: %s",
this, spa_strerror(res)); this, spa_strerror(res));
return; return;

View file

@ -273,7 +273,7 @@ static void on_timeout(struct spa_source *source)
if ((res = spa_system_timerfd_read(this->data_system, if ((res = spa_system_timerfd_read(this->data_system,
this->timer_source.fd, &expirations)) < 0) { this->timer_source.fd, &expirations)) < 0) {
if (res != EAGAIN) if (res != -EAGAIN)
spa_log_error(this->log, NAME " %p: timerfd error: %s", spa_log_error(this->log, NAME " %p: timerfd error: %s",
this, spa_strerror(res)); this, spa_strerror(res));
return; return;