mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	suspend-on-idle: don't crash when so->source is NULL
This commit is contained in:
		
							parent
							
								
									cce4359831
								
							
						
					
					
						commit
						f56da98937
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -174,6 +174,9 @@ static pa_hook_result_t source_output_unlink_hook_cb(pa_core *c, pa_source_outpu
 | 
			
		|||
    pa_source_output_assert_ref(s);
 | 
			
		||||
    pa_assert(u);
 | 
			
		||||
 | 
			
		||||
    if (!s->source)
 | 
			
		||||
        return PA_HOOK_OK;
 | 
			
		||||
 | 
			
		||||
    if (pa_source_check_suspend(s->source) <= 0) {
 | 
			
		||||
        struct device_info *d;
 | 
			
		||||
        if ((d = pa_hashmap_get(u->device_infos, s->source)))
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue