mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-16 08:56:45 -05:00
module-pulse-tunnel: clear ringbuffer on cork
This commit is contained in:
parent
182b3c8798
commit
26db2f1ec9
1 changed files with 1 additions and 0 deletions
|
|
@ -146,6 +146,7 @@ static void cork_stream(struct impl *impl, bool cork)
|
||||||
pa_operation_unref(operation);
|
pa_operation_unref(operation);
|
||||||
|
|
||||||
spa_ringbuffer_init(&impl->ring);
|
spa_ringbuffer_init(&impl->ring);
|
||||||
|
memset(impl->buffer, 0, RINGBUFFER_SIZE);
|
||||||
}
|
}
|
||||||
if (!cork)
|
if (!cork)
|
||||||
impl->resync = true;
|
impl->resync = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue