mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-05-29 21:37:54 -04:00
treewide: replace EBADFD with posix EBADF
EBADF was used in some places already, some other places used EBADFD (with and without an #ifdef). EBADFD is linux specific.
This commit is contained in:
parent
db8bb8d489
commit
7303a55b50
4 changed files with 12 additions and 16 deletions
|
|
@ -586,7 +586,7 @@ static int device_write(struct impl *this, const void *data, uint32_t size)
|
|||
res = compress_offload_api_write(this->device_context, data, num_bytes_to_write);
|
||||
|
||||
if (SPA_UNLIKELY(res < 0)) {
|
||||
if (res == -EBADFD)
|
||||
if (res == -EBADF)
|
||||
spa_log_debug(this->log, "%p: device is paused", this);
|
||||
else
|
||||
spa_log_error(this->log, "%p: write error: %s", this, spa_strerror(res));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue