mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-09 13:30:06 -05:00
node: improve warnings
Make separate warnings for read failure and xrun
This commit is contained in:
parent
940ff7f53b
commit
f11cd32258
1 changed files with 4 additions and 2 deletions
|
|
@ -931,8 +931,10 @@ static void node_on_fd_events(struct spa_source *source)
|
|||
if (SPA_LIKELY(source->rmask & SPA_IO_IN)) {
|
||||
uint64_t cmd;
|
||||
|
||||
if (SPA_UNLIKELY(spa_system_eventfd_read(data_system, this->source.fd, &cmd) < 0 || cmd != 1))
|
||||
pw_log_warn(NAME" %p: read %"PRIu64" failed %m", this, cmd);
|
||||
if (SPA_UNLIKELY(spa_system_eventfd_read(data_system, this->source.fd, &cmd) < 0))
|
||||
pw_log_warn(NAME" %p: read failed %m", this);
|
||||
if (SPA_UNLIKELY(cmd > 1))
|
||||
pw_log_warn(NAME" %p: missed %"PRIu64" wakeups", this, cmd - 1);
|
||||
|
||||
pw_log_trace_fp(NAME" %p: got process", this);
|
||||
this->rt.target.signal(this->rt.target.data);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue