mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	videoconvert: consume input buffer in all cases
Return the input buffer when we get some error so that the other side can send new data.
This commit is contained in:
		
							parent
							
								
									bcf0c0cf89
								
							
						
					
					
						commit
						1cca24c585
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		| 
						 | 
					@ -1898,6 +1898,7 @@ static int impl_node_process(void *object)
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	sbuf = &in_port->buffers[input->buffer_id];
 | 
						sbuf = &in_port->buffers[input->buffer_id];
 | 
				
			||||||
 | 
						input->status = SPA_STATUS_NEED_DATA;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (this->fmt_passthrough) {
 | 
						if (this->fmt_passthrough) {
 | 
				
			||||||
		dbuf = &out_port->buffers[input->buffer_id];
 | 
							dbuf = &out_port->buffers[input->buffer_id];
 | 
				
			||||||
| 
						 | 
					@ -2005,8 +2006,6 @@ static int impl_node_process(void *object)
 | 
				
			||||||
	output->buffer_id = dbuf->id;
 | 
						output->buffer_id = dbuf->id;
 | 
				
			||||||
	output->status = SPA_STATUS_HAVE_DATA;
 | 
						output->status = SPA_STATUS_HAVE_DATA;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	input->status = SPA_STATUS_NEED_DATA;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	return SPA_STATUS_HAVE_DATA;
 | 
						return SPA_STATUS_HAVE_DATA;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue