mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-10-29 05:40:27 -04:00 
			
		
		
		
	spa: libcamera: bump minimum supported version to 0.2.0
This commit is contained in:
		
							parent
							
								
									268f4856f8
								
							
						
					
					
						commit
						4b145ad444
					
				
					 2 changed files with 1 additions and 4 deletions
				
			
		|  | @ -96,9 +96,8 @@ if get_option('spa-plugins').allowed() | |||
|   endif | ||||
|   summary({'Vulkan': have_vulkan}, bool_yn: true, section: 'Misc dependencies') | ||||
| 
 | ||||
|   libcamera_dep = dependency('libcamera', required: get_option('libcamera')) | ||||
|   libcamera_dep = dependency('libcamera', version: '>= 0.2.0', required: get_option('libcamera')) | ||||
|   summary({'libcamera': libcamera_dep.found()}, bool_yn: true, section: 'Backend') | ||||
|   cdata.set('HAVE_LIBCAMERA_SYSTEM_DEVICES', libcamera_dep.version().version_compare('>= 0.1.0')) | ||||
| 
 | ||||
|   compress_offload_option = get_option('compress-offload') | ||||
|   summary({'Compress-Offload': compress_offload_option.allowed()}, bool_yn: true, section: 'Backend') | ||||
|  |  | |||
|  | @ -61,12 +61,10 @@ struct impl { | |||
| static const libcamera::Span<const int64_t> cameraDevice( | ||||
| 			const Camera *camera) | ||||
| { | ||||
| #ifdef HAVE_LIBCAMERA_SYSTEM_DEVICES | ||||
| 	const ControlList &props = camera->properties(); | ||||
| 
 | ||||
| 	if (auto devices = props.get(properties::SystemDevices)) | ||||
| 		return devices.value(); | ||||
| #endif | ||||
| 
 | ||||
| 	return {}; | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Barnabás Pőcze
						Barnabás Pőcze