mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	v4l2: mark data CORRUPTED
We need to mark the data corrupted in the chunk, not buffer flags.
This commit is contained in:
		
							parent
							
								
									8dcd6c4417
								
							
						
					
					
						commit
						42af40675d
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -1221,7 +1221,7 @@ static int mmap_read(struct impl *this)
 | 
				
			||||||
	d[0].chunk->stride = port->fmt.fmt.pix.bytesperline;
 | 
						d[0].chunk->stride = port->fmt.fmt.pix.bytesperline;
 | 
				
			||||||
	d[0].chunk->flags = 0;
 | 
						d[0].chunk->flags = 0;
 | 
				
			||||||
	if (buf.flags & V4L2_BUF_FLAG_ERROR)
 | 
						if (buf.flags & V4L2_BUF_FLAG_ERROR)
 | 
				
			||||||
		d[0].flags |= SPA_CHUNK_FLAG_CORRUPTED;
 | 
							d[0].chunk->flags |= SPA_CHUNK_FLAG_CORRUPTED;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	spa_list_append(&port->queue, &b->link);
 | 
						spa_list_append(&port->queue, &b->link);
 | 
				
			||||||
	return 0;
 | 
						return 0;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue