pulse-server: don't update ringbuffer in underrun

This commit is contained in:
Wim Taymans 2021-01-29 10:45:26 +01:00
parent 6370d75efd
commit 1ea8282a24

View file

@ -1557,8 +1557,6 @@ static void stream_process(void *data)
pd.playing_for = size; pd.playing_for = size;
pd.underrun = true; pd.underrun = true;
} }
pd.read_index += size;
spa_ringbuffer_read_update(&stream->ring, pd.read_index);
} else { } else {
if (avail > (int32_t)stream->attr.maxlength) { if (avail > (int32_t)stream->attr.maxlength) {
/* overrun, reported by other side, here we skip /* overrun, reported by other side, here we skip