mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	client-stream: reset format on adapter
This commit is contained in:
		
							parent
							
								
									bb632859ea
								
							
						
					
					
						commit
						1bff5afe05
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		| 
						 | 
					@ -544,6 +544,11 @@ impl_node_port_set_param(struct spa_node *node,
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (id == t->param.idFormat && impl->use_converter) {
 | 
						if (id == t->param.idFormat && impl->use_converter) {
 | 
				
			||||||
		if (param == NULL) {
 | 
							if (param == NULL) {
 | 
				
			||||||
 | 
								if ((res = spa_node_port_set_param(impl->adapter,
 | 
				
			||||||
 | 
									SPA_DIRECTION_REVERSE(direction), 0, id,
 | 
				
			||||||
 | 
										0, NULL)) < 0)
 | 
				
			||||||
 | 
									return res;
 | 
				
			||||||
 | 
								impl->n_buffers = 0;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		else {
 | 
							else {
 | 
				
			||||||
			if (port_id == 0)
 | 
								if (port_id == 0)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue