mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	pulse-server: make sure we are active when draining
When we start draining, set ourselves active so that the process function is called where the draining is completed. This avoids a corked stream from waiting forever to drain the stream. Fixes #946
This commit is contained in:
		
							parent
							
								
									80a6583271
								
							
						
					
					
						commit
						fa1350b0cf
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -3752,6 +3752,8 @@ static int do_drain_stream(struct client *client, uint32_t command, uint32_t tag
 | 
			
		|||
 | 
			
		||||
	stream->drain_tag = tag;
 | 
			
		||||
	stream->draining = true;
 | 
			
		||||
	pw_stream_set_active(stream->stream, true);
 | 
			
		||||
 | 
			
		||||
	return 0;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue