bluez5: media-source: do buffering on connection start also with PLC

Also when we are capable of PLC, it's better to buffer audio at start,
to get a buffer level close to the target initially.

Delay ISO overrun handling one cycle after buffering is complete, so
that any resamplers are filled at that point.
This commit is contained in:
Pauli Virtanen 2026-01-01 11:50:43 +02:00 committed by Wim Taymans
parent 1d7e89e069
commit b535534611
2 changed files with 9 additions and 2 deletions

View file

@ -682,7 +682,6 @@ void spa_bt_iso_io_set_source_buffer(struct spa_bt_iso_io *this, struct spa_bt_d
if (buffer) {
/* Take over buffer overrun handling */
buffer->no_overrun_drop = true;
buffer->buffering = false;
buffer->avg_period = ISO_BUFFERING_AVG_PERIOD;
buffer->rate_diff_max = ISO_BUFFERING_RATE_DIFF_MAX;
}