mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	ladspa-sink: do not call pa_sink_suspend if PA_SINK_IS_LINKED is false
While module-ladspa-sink is still being loaded and before pa_sink_put() is called there may be an attempt to reconfigure master sink when avoid-resampling is true. This breaks attempting to suspend ladspa-sink which is still in INIT state. Fix this by skipping pa_sink_suspend if PA_SINK_IS_LINKED is false. Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/445>
This commit is contained in:
		
							parent
							
								
									81ebd8ba3f
								
							
						
					
					
						commit
						b76d835e59
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -714,6 +714,9 @@ static void sink_input_suspend_cb(pa_sink_input *i, pa_sink_state_t old_state, p
 | 
			
		|||
    pa_sink_input_assert_ref(i);
 | 
			
		||||
    pa_assert_se(u = i->userdata);
 | 
			
		||||
 | 
			
		||||
    if (!PA_SINK_IS_LINKED(u->sink->state))
 | 
			
		||||
        return;
 | 
			
		||||
 | 
			
		||||
    if (i->sink->state != PA_SINK_SUSPENDED || i->sink->suspend_cause == PA_SUSPEND_IDLE)
 | 
			
		||||
        pa_sink_suspend(u->sink, false, PA_SUSPEND_UNAVAILABLE);
 | 
			
		||||
    else
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue