mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
spa: libcamera: source: avoid iterator overrun when enumerating controls
Do not overrun the iterator when skipping the initial couple items.
This commit is contained in:
parent
6f058e6b0d
commit
a858290e4b
1 changed files with 1 additions and 1 deletions
|
|
@ -774,7 +774,7 @@ spa_libcamera_enum_controls(struct impl *impl, struct port *port, int seq,
|
|||
result.next = start;
|
||||
|
||||
auto it = info.begin();
|
||||
for (skip = result.next - offset; skip; skip--)
|
||||
for (skip = result.next - offset; skip && it != info.end(); skip--)
|
||||
it++;
|
||||
|
||||
if (false) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue