libcamera: check for item in map correctly

Fixes #2817
This commit is contained in:
Wim Taymans 2022-11-08 10:41:18 +01:00
parent e96b0ed4a8
commit cb18c5877b

View file

@ -583,7 +583,7 @@ spa_libcamera_set_control(struct impl *impl, const struct spa_pod_prop *prop)
struct val d;
auto v = info.idmap().find(prop->key);
if (v == NULL)
if (v == info.idmap().end())
return -ENOENT;
ctrl_id = v->second;