mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	pipewire-pulse: delay create stream reply if the peer is not found
When the client adapter is configured in passthrough mode, the stream param changed event in pipewire-pulse is emitted before the session manager creates the link, and not after. Therfore, the peer can never be found when replying create stream, and the pulseaudio application receives a stream error. This patch delays the create stream reply until the link is added if the peer cannot be found, fixing the above race conditon to allow passthrough mode to work with pulseaudio applications.
This commit is contained in:
		
							parent
							
								
									60480f422e
								
							
						
					
					
						commit
						b136bb8ca5
					
				
					 5 changed files with 353 additions and 326 deletions
				
			
		| 
						 | 
				
			
			@ -48,6 +48,7 @@ struct buffer_attr {
 | 
			
		|||
};
 | 
			
		||||
 | 
			
		||||
struct stream {
 | 
			
		||||
	struct spa_list link;
 | 
			
		||||
	uint32_t create_tag;
 | 
			
		||||
	uint32_t channel;	/* index in map */
 | 
			
		||||
	uint32_t id;		/* id of global */
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue