mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	core: split of FAIL_ON_SUSPEND into KILL_ON_SUSPEND and NO_CREATE_ON_SUSPEND
This commit is contained in:
		
							parent
							
								
									e53d2fc6b5
								
							
						
					
					
						commit
						e4db56bf07
					
				
					 8 changed files with 18 additions and 15 deletions
				
			
		| 
						 | 
				
			
			@ -398,9 +398,9 @@ static int sink_set_state(pa_sink *s, pa_sink_state_t state) {
 | 
			
		|||
 | 
			
		||||
        /* We're suspending or resuming, tell everyone about it */
 | 
			
		||||
 | 
			
		||||
        for (i = PA_SINK_INPUT(pa_idxset_first(s->inputs, &idx)); i; i = PA_SINK_INPUT(pa_idxset_next(s->inputs, &idx)))
 | 
			
		||||
        PA_IDXSET_FOREACH(i, s->inputs, idx)
 | 
			
		||||
            if (s->state == PA_SINK_SUSPENDED &&
 | 
			
		||||
                (i->flags & PA_SINK_INPUT_FAIL_ON_SUSPEND))
 | 
			
		||||
                (i->flags & PA_SINK_INPUT_KILL_ON_SUSPEND))
 | 
			
		||||
                pa_sink_input_kill(i);
 | 
			
		||||
            else if (i->suspend)
 | 
			
		||||
                i->suspend(i, state == PA_SINK_SUSPENDED);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue