mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	pulse-server: only react to state changes when not corked
When we are starting or corked we don't emit suspend/resume caused by state changes.
This commit is contained in:
		
							parent
							
								
									bcb9ff20fd
								
							
						
					
					
						commit
						bd7ce5c7fa
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -1129,7 +1129,7 @@ static void stream_state_changed(void *data, enum pw_stream_state old,
 | 
			
		|||
 | 
			
		||||
	/* Don't emit suspended if we are creating a corked stream, as that will have a quick
 | 
			
		||||
	 * RUNNING/SUSPENDED transition for initial negotiation */
 | 
			
		||||
	if (stream->create_tag == SPA_ID_INVALID || !stream->corked) {
 | 
			
		||||
	if (stream->create_tag == SPA_ID_INVALID && !stream->corked) {
 | 
			
		||||
		if (old == PW_STREAM_STATE_PAUSED && state == PW_STREAM_STATE_STREAMING)
 | 
			
		||||
			stream_send_suspended(stream, false);
 | 
			
		||||
		if (old == PW_STREAM_STATE_STREAMING && state == PW_STREAM_STATE_PAUSED)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue