mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	v4l2: only skip buffer for raw formats
We don't want to skip the first buffer for encoded formats because it can contain the encoding parameters, in the h264 case, for example.
This commit is contained in:
		
							parent
							
								
									d1d580cafa
								
							
						
					
					
						commit
						bcf0c0cf89
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -1873,7 +1873,10 @@ static int spa_v4l2_stream_on(struct impl *this)
 | 
			
		|||
 | 
			
		||||
	spa_log_debug(this->log, "starting");
 | 
			
		||||
 | 
			
		||||
	port->first_buffer = true;
 | 
			
		||||
	if (port->current_format.media_subtype == SPA_MEDIA_SUBTYPE_raw)
 | 
			
		||||
		port->first_buffer = true;
 | 
			
		||||
	else
 | 
			
		||||
		port->first_buffer = false;
 | 
			
		||||
	mmap_read(this);
 | 
			
		||||
 | 
			
		||||
	type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue