mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	spa: libcamera: source: ignore array controls
Properly ignore array controls because they are not supported for now.
(cherry picked from commit e9367443ac)
			
			
This commit is contained in:
		
							parent
							
								
									a1cc0f3d86
								
							
						
					
					
						commit
						337d3b3daf
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -743,6 +743,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;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -900,6 +903,9 @@ spa_libcamera_set_control(struct impl *impl, const struct spa_pod_prop *prop)
 | 
			
		|||
 | 
			
		||||
	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