mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
spa: libcamera: source: ignore array controls
Properly ignore array controls because they are not supported for now.
This commit is contained in:
parent
66cc01ee2d
commit
e9367443ac
1 changed files with 6 additions and 0 deletions
|
|
@ -744,6 +744,9 @@ uint32_t prop_id_to_control(uint32_t prop_id)
|
|||
spa_pod *control_details_to_pod(spa_pod_builder& b,
|
||||
const libcamera::ControlId& cid, const libcamera::ControlInfo& cinfo)
|
||||
{
|
||||
if (cid.isArray())
|
||||
return nullptr;
|
||||
|
||||
auto id = control_to_prop_id(cid.id());
|
||||
spa_pod_frame f;
|
||||
|
||||
|
|
@ -901,6 +904,9 @@ spa_libcamera_set_control(struct impl *impl, const struct spa_pod_prop *prop, co
|
|||
|
||||
ctrl_id = v->second;
|
||||
|
||||
if (ctrl_id->isArray())
|
||||
return -EINVAL;
|
||||
|
||||
d.type = ctrl_id->type();
|
||||
d.id = ctrl_id->id();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue