mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	stream: only install converter io once
This commit is contained in:
		
							parent
							
								
									b07c4932cd
								
							
						
					
					
						commit
						96c87c3f7f
					
				
					 1 changed files with 11 additions and 9 deletions
				
			
		| 
						 | 
				
			
			@ -213,6 +213,7 @@ static int configure_converter(struct stream *impl)
 | 
			
		|||
	if (!impl->use_converter)
 | 
			
		||||
		return -ENOTSUP;
 | 
			
		||||
 | 
			
		||||
	if (impl->io != &impl->conv_io) {
 | 
			
		||||
		res = spa_node_port_set_io(impl->convert,
 | 
			
		||||
					impl->direction, 0,
 | 
			
		||||
					t->io.Buffers,
 | 
			
		||||
| 
						 | 
				
			
			@ -222,6 +223,7 @@ static int configure_converter(struct stream *impl)
 | 
			
		|||
					SPA_DIRECTION_REVERSE(impl->direction), 0,
 | 
			
		||||
					t->io.Buffers,
 | 
			
		||||
					impl->io, sizeof(struct spa_io_buffers));
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	return 0;
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue