mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	sink: don't sync monitor suspend state when unlinking
When the sink is unlinked, there's no need to update the monitor suspend state. In fact, trying to do that causes an assertion failure, because pa_source_sync_suspend() wasn't written to handle the case where the sink is unlinked.
This commit is contained in:
		
							parent
							
								
									6ed37aeef2
								
							
						
					
					
						commit
						d6e39b5e89
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -481,7 +481,7 @@ static int sink_set_state(pa_sink *s, pa_sink_state_t state, pa_suspend_cause_t
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
finish:
 | 
					finish:
 | 
				
			||||||
    if ((suspending || resuming || suspend_cause_changed) && s->monitor_source)
 | 
					    if ((suspending || resuming || suspend_cause_changed) && s->monitor_source && state != PA_SINK_UNLINKED)
 | 
				
			||||||
        pa_source_sync_suspend(s->monitor_source);
 | 
					        pa_source_sync_suspend(s->monitor_source);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    return ret;
 | 
					    return ret;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue