diff --git a/src/modules/module-protocol-pulse/pulse-server.c b/src/modules/module-protocol-pulse/pulse-server.c index 019efe60d..3de1423df 100644 --- a/src/modules/module-protocol-pulse/pulse-server.c +++ b/src/modules/module-protocol-pulse/pulse-server.c @@ -1569,9 +1569,12 @@ static void stream_process(void *data) pw_stream_flush(stream->stream, true); } else { pd.underrun_for = size; - pd.playing_for = size; pd.underrun = true; } + if (stream->attr.prebuf == 0) { + pd.read_index += size; + spa_ringbuffer_read_update(&stream->ring, pd.read_index); + } } else { if (avail > (int32_t)stream->attr.maxlength) { /* overrun, reported by other side, here we skip