mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	v4l2: Re-enable first buffer skip for jpeg types
The workaround is typically needed with usb-cameras using jpeg streams. Re-enabling the skip shouldn't affect what the commit was trying to do, i.e. fix encoded streams like h264 etc. Fixes:bcf0c0cf8(v4l2: only skip buffer for raw formats) (cherry picked from commite387772dc2)
This commit is contained in:
		
							parent
							
								
									6b9f340219
								
							
						
					
					
						commit
						2a8d5c1f40
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -1873,7 +1873,9 @@ static int spa_v4l2_stream_on(struct impl *this)
 | 
			
		|||
 | 
			
		||||
	spa_log_debug(this->log, "starting");
 | 
			
		||||
 | 
			
		||||
	if (port->current_format.media_subtype == SPA_MEDIA_SUBTYPE_raw)
 | 
			
		||||
	if (port->current_format.media_subtype == SPA_MEDIA_SUBTYPE_raw ||
 | 
			
		||||
	    port->current_format.media_subtype == SPA_MEDIA_SUBTYPE_mjpg ||
 | 
			
		||||
	    port->current_format.media_subtype == SPA_MEDIA_SUBTYPE_jpeg)
 | 
			
		||||
		port->first_buffer = true;
 | 
			
		||||
	else
 | 
			
		||||
		port->first_buffer = false;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue