bluez5: read errqueue also from media-source handler

Flush errqueue for iso-io also from the media-source handler, to avoid
dropping packet tx reports.

This applies to bidirectional streams. The sink/source handlers poll on
different fd, one being dup'd, and epoll does not trigger them in any
specific interleaved order.
This commit is contained in:
Pauli Virtanen 2025-11-09 02:26:36 +02:00
parent 878dd7a0c9
commit 8df58db415
2 changed files with 15 additions and 0 deletions

View file

@ -613,6 +613,10 @@ static void handle_errqueue(struct impl *this)
{
int res;
if (this->transport && this->transport->iso_io)
if (spa_bt_iso_io_recv_errqueue(this->transport->iso_io) == 0)
return;
/* iso-io/media-sink use these for TX latency.
* Someone else should be reading them, so drop
* only after yielding.