mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	merger: follow the position duration if we can
This commit is contained in:
		
							parent
							
								
									8825a21e86
								
							
						
					
					
						commit
						c10feda5ce
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		| 
						 | 
					@ -977,7 +977,11 @@ static int impl_node_process(void *object)
 | 
				
			||||||
	dd = &dbuf->buf->datas[0];
 | 
						dd = &dbuf->buf->datas[0];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	maxsize = dd->maxsize;
 | 
						maxsize = dd->maxsize;
 | 
				
			||||||
	n_samples = maxsize / outport->stride;
 | 
					
 | 
				
			||||||
 | 
						if (SPA_LIKELY(this->io_position))
 | 
				
			||||||
 | 
							n_samples = this->io_position->clock.duration;
 | 
				
			||||||
 | 
						else
 | 
				
			||||||
 | 
							n_samples = maxsize / outport->stride;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	src_datas = alloca(sizeof(void*) * this->port_count);
 | 
						src_datas = alloca(sizeof(void*) * this->port_count);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue