mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
bluez5: media-source: drop all errqueue data when ignoring
This commit is contained in:
parent
28393cb896
commit
396d37594c
1 changed files with 6 additions and 2 deletions
|
|
@ -620,8 +620,12 @@ static void handle_errqueue(struct impl *this)
|
|||
}
|
||||
|
||||
this->errqueue_count = 0;
|
||||
res = recv(this->fd, NULL, 0, MSG_ERRQUEUE | MSG_TRUNC);
|
||||
spa_log_trace(this->log, "%p: ignoring errqueue data (%d)", this, res);
|
||||
do {
|
||||
char buf[512];
|
||||
|
||||
res = recv(this->fd, buf, sizeof(buf), MSG_ERRQUEUE | MSG_TRUNC | MSG_DONTWAIT);
|
||||
spa_log_trace(this->log, "%p: ignoring errqueue data (%d)", this, res);
|
||||
} while (res > 0);
|
||||
}
|
||||
|
||||
static void media_on_ready_read(struct spa_source *source)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue