mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	sink,source: Account for corked streams in update_rate()
pa_sink/source_used_by() ignores corked/monitor streams, but we need to make sure there aren't any of these while updating rate (at least for now -- this is a restriction that would be nice to get rid of).
This commit is contained in:
		
							parent
							
								
									72377fcad5
								
							
						
					
					
						commit
						034006ec90
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -1385,7 +1385,7 @@ pa_bool_t pa_sink_update_rate(pa_sink *s, uint32_t rate, pa_bool_t passthrough)
 | 
			
		|||
            desired_rate = rate; /* use stream sampling rate, discard default/alternate settings */
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        if (passthrough || pa_sink_used_by(s) == 0) {
 | 
			
		||||
        if (passthrough || pa_sink_linked_by(s) == 0) {
 | 
			
		||||
            pa_sink_suspend(s, TRUE, PA_SUSPEND_IDLE); /* needed before rate update, will be resumed automatically */
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue