mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-10-29 05:40:27 -04:00 
			
		
		
		
	impl-port: avoid doing port calls when destroying
When we are destroying a port, don't try to clear io and format, the port is already gone.
This commit is contained in:
		
							parent
							
								
									5578afa7de
								
							
						
					
					
						commit
						5a30d82d7e
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		|  | @ -331,6 +331,9 @@ int pw_impl_port_release_mix(struct pw_impl_port *port, struct pw_impl_port_mix | |||
| 
 | ||||
| 	res = pw_impl_port_call_release_mix(port, mix); | ||||
| 
 | ||||
| 	if (port->destroying) | ||||
| 		return res; | ||||
| 
 | ||||
| 	if ((res = spa_node_remove_port(port->mix, port->direction, port_id)) < 0 && | ||||
| 	    res != -ENOTSUP) | ||||
| 		pw_log_warn("can't remove mix port %d: %s", port_id, spa_strerror(res)); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Wim Taymans
						Wim Taymans