module-pulse-tunnel: clear ringbuffer on cork

This commit is contained in:
Wim Taymans 2022-04-19 10:51:45 +02:00
parent 182b3c8798
commit 26db2f1ec9

View file

@ -146,6 +146,7 @@ static void cork_stream(struct impl *impl, bool cork)
pa_operation_unref(operation);
spa_ringbuffer_init(&impl->ring);
memset(impl->buffer, 0, RINGBUFFER_SIZE);
}
if (!cork)
impl->resync = true;