mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
libcamera: reset ringbuffer when clearing buffers
Keeping the ringbuffer state around resulted in a high chance of using wrong buffer IDs for consequent streams, causing various issues.
This commit is contained in:
parent
4d33ccf89a
commit
d59158529b
1 changed files with 1 additions and 0 deletions
|
|
@ -149,6 +149,7 @@ static int spa_libcamera_clear_buffers(struct impl *impl, struct port *port)
|
|||
|
||||
freeBuffers(impl, port);
|
||||
port->n_buffers = 0;
|
||||
port->ring = SPA_RINGBUFFER_INIT();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue