mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05: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
c3fec9769c
commit
e770ed42c3
1 changed files with 1 additions and 1 deletions
|
|
@ -773,7 +773,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