mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	remote: clear buffers when format changes
This commit is contained in:
		
							parent
							
								
									6450c64542
								
							
						
					
					
						commit
						bb632859ea
					
				
					 1 changed files with 4 additions and 6 deletions
				
			
		| 
						 | 
					@ -946,14 +946,12 @@ client_node_port_set_param(void *object,
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if (id == t->param.idFormat) {
 | 
					        if (id == t->param.idFormat) {
 | 
				
			||||||
		if (param == NULL) {
 | 
					 | 
				
			||||||
		struct mix *mix;
 | 
							struct mix *mix;
 | 
				
			||||||
		spa_list_for_each(mix, &data->mix[direction], link) {
 | 
							spa_list_for_each(mix, &data->mix[direction], link) {
 | 
				
			||||||
			if (mix->port->port_id == port_id)
 | 
								if (mix->port->port_id == port_id)
 | 
				
			||||||
				clear_buffers(data, mix);
 | 
									clear_buffers(data, mix);
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
	res = pw_port_set_param(port, id, flags, param);
 | 
						res = pw_port_set_param(port, id, flags, param);
 | 
				
			||||||
	if (res < 0)
 | 
						if (res < 0)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue