pulser-server: keep updating missing bytes if prebuf == 0

This commit is contained in:
Wim Taymans 2021-01-30 20:38:47 +01:00
parent d37742b410
commit d1c0244512

View file

@ -1570,6 +1570,8 @@ static void stream_process(void *data)
} else { } else {
pd.underrun_for = size; pd.underrun_for = size;
pd.underrun = true; pd.underrun = true;
if (stream->attr.prebuf == 0)
pd.missing = size;
} }
if (stream->attr.prebuf == 0) { if (stream->attr.prebuf == 0) {
pd.read_index += size; pd.read_index += size;