pulser-server: revert attempt to flush more

size is later used as the buffer size and might be too large.
This commit is contained in:
Wim Taymans 2021-01-28 19:17:50 +01:00
parent b65b291bb2
commit 8636c509f5

View file

@ -1550,10 +1550,6 @@ static void stream_process(void *data)
size = SPA_MIN(buf->datas[0].maxsize, minreq); size = SPA_MIN(buf->datas[0].maxsize, minreq);
memset(p, 0, size); memset(p, 0, size);
/* skip the remainder, avail can be negative and thus
* we can skip a lot here. */
size = (int32_t)minreq - avail;
if (stream->draining) { if (stream->draining) {
stream->draining = false; stream->draining = false;
pw_stream_flush(stream->stream, true); pw_stream_flush(stream->stream, true);