mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	remote-node: clear up mix structures when port is removed
This commit is contained in:
		
							parent
							
								
									0c04481ba7
								
							
						
					
					
						commit
						35534baf9d
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		| 
						 | 
					@ -1041,6 +1041,7 @@ static void node_port_info_changed(void *data, struct pw_impl_port *port,
 | 
				
			||||||
static void node_port_removed(void *data, struct pw_impl_port *port)
 | 
					static void node_port_removed(void *data, struct pw_impl_port *port)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	struct node_data *d = data;
 | 
						struct node_data *d = data;
 | 
				
			||||||
 | 
						struct mix *mix, *tmp;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	pw_log_debug("removed %p", d);
 | 
						pw_log_debug("removed %p", d);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1051,6 +1052,11 @@ static void node_port_removed(void *data, struct pw_impl_port *port)
 | 
				
			||||||
			port->direction,
 | 
								port->direction,
 | 
				
			||||||
			port->port_id,
 | 
								port->port_id,
 | 
				
			||||||
			0, 0, NULL, NULL);
 | 
								0, 0, NULL, NULL);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						spa_list_for_each_safe(mix, tmp, &d->mix[port->direction], link) {
 | 
				
			||||||
 | 
							if (mix->port == port)
 | 
				
			||||||
 | 
								clear_mix(d, mix);
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static void node_active_changed(void *data, bool active)
 | 
					static void node_active_changed(void *data, bool active)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue