mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	libcamera: don't set camera configuration in LibCamera::start()
There is no need to set and validate the configuration when the camera is started, since this was already made when the camera was opened. The configuration only needs to be set again if the port format changes due a SPA_PARAM_Format parameter.
This commit is contained in:
		
							parent
							
								
									2d69f775de
								
							
						
					
					
						commit
						a7a6f19815
					
				
					 2 changed files with 4 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -481,6 +481,10 @@ static int spa_libcamera_set_format(struct impl *this, struct spa_video_info *fo
 | 
			
		|||
	libcamera_set_streamcfg_width(dev->camera, size->width);
 | 
			
		||||
	libcamera_set_streamcfg_height(dev->camera, size->height);
 | 
			
		||||
 | 
			
		||||
	if(!libcamera_set_config(dev->camera)) {
 | 
			
		||||
		return -EINVAL;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	/* start the camera now with the configured params */
 | 
			
		||||
	libcamera_start_capture(dev->camera);
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue