mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05: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
16a7467815
commit
dcf2d8f103
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