mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-03-20 05:33:55 -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;
|
this->errqueue_count = 0;
|
||||||
res = recv(this->fd, NULL, 0, MSG_ERRQUEUE | MSG_TRUNC);
|
do {
|
||||||
spa_log_trace(this->log, "%p: ignoring errqueue data (%d)", this, res);
|
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)
|
static void media_on_ready_read(struct spa_source *source)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue