mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	a2dp: remove transport hooks on destroy
This commit is contained in:
		
							parent
							
								
									1e2ad41d94
								
							
						
					
					
						commit
						357868eeb5
					
				
					 2 changed files with 5 additions and 0 deletions
				
			
		| 
						 | 
					@ -1423,6 +1423,8 @@ static int impl_get_interface(struct spa_handle *handle, const char *type, void
 | 
				
			||||||
static int impl_clear(struct spa_handle *handle)
 | 
					static int impl_clear(struct spa_handle *handle)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	struct impl *this = (struct impl *) handle;
 | 
						struct impl *this = (struct impl *) handle;
 | 
				
			||||||
 | 
						if (this->transport)
 | 
				
			||||||
 | 
							spa_hook_remove(&this->transport_listener);
 | 
				
			||||||
	spa_system_close(this->data_system, this->timerfd);
 | 
						spa_system_close(this->data_system, this->timerfd);
 | 
				
			||||||
	return 0;
 | 
						return 0;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1074,6 +1074,9 @@ static int impl_get_interface(struct spa_handle *handle, const char *type, void
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static int impl_clear(struct spa_handle *handle)
 | 
					static int impl_clear(struct spa_handle *handle)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 | 
						struct impl *this = (struct impl *) handle;
 | 
				
			||||||
 | 
						if (this->transport)
 | 
				
			||||||
 | 
							spa_hook_remove(&this->transport_listener);
 | 
				
			||||||
	return 0;
 | 
						return 0;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue