mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	audioadapter: init the builder for each param
Or else we keep on adding items until we overflow.
This commit is contained in:
		
							parent
							
								
									98e7ae39c6
								
							
						
					
					
						commit
						ce6d2fce9a
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -1612,13 +1612,13 @@ port_enum_formats_for_convert(struct impl *this, int seq, enum spa_direction dir
 | 
			
		|||
	uint32_t count = 0;
 | 
			
		||||
	struct spa_result_node_params result;
 | 
			
		||||
 | 
			
		||||
	spa_pod_builder_init(&b, buffer, sizeof(buffer));
 | 
			
		||||
 | 
			
		||||
	result.id = id;
 | 
			
		||||
	result.next = start;
 | 
			
		||||
next:
 | 
			
		||||
	result.index = result.next;
 | 
			
		||||
 | 
			
		||||
	spa_pod_builder_init(&b, buffer, sizeof(buffer));
 | 
			
		||||
 | 
			
		||||
	if (result.next < 0x100000) {
 | 
			
		||||
		/* Enumerate follower formats first, until we have enough or we run out */
 | 
			
		||||
		if ((res = node_port_enum_params_sync(this, this->follower, direction, port_id, id,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue