mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
a2dp: check and log return value of fcntl
This commit is contained in:
parent
459acda619
commit
45c62dfde6
1 changed files with 2 additions and 1 deletions
|
|
@ -463,7 +463,8 @@ static int transport_start(struct impl *this)
|
|||
this->transport->configuration_len);
|
||||
|
||||
val = fcntl(this->transport->fd, F_GETFL);
|
||||
fcntl(this->transport->fd, F_SETFL, val | O_NONBLOCK);
|
||||
if (fcntl(this->transport->fd, F_SETFL, val | O_NONBLOCK) < 0)
|
||||
spa_log_warn(this->log, NAME" %p: fcntl %u %m", this, val | O_NONBLOCK);
|
||||
|
||||
val = FILL_FRAMES * this->transport->write_mtu;
|
||||
if (setsockopt(this->transport->fd, SOL_SOCKET, SO_SNDBUF, &val, sizeof(val)) < 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue