mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	sco: remove transport hooks on destroy
This commit is contained in:
		
							parent
							
								
									357868eeb5
								
							
						
					
					
						commit
						7b129c1020
					
				
					 2 changed files with 5 additions and 0 deletions
				
			
		| 
						 | 
					@ -1072,6 +1072,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;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -978,6 +978,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