mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-10-29 05:40:27 -04:00 
			
		
		
		
	ratelimit: missed -> suppressed
To avoid confusing with missed samples.
This commit is contained in:
		
							parent
							
								
									1837654a4b
								
							
						
					
					
						commit
						016d15e598
					
				
					 6 changed files with 50 additions and 50 deletions
				
			
		|  | @ -672,22 +672,22 @@ static void stream_underflow_cb(pa_stream *s, void *userdata) | |||
| { | ||||
| 	struct impl *impl = userdata; | ||||
| 	struct timespec ts; | ||||
| 	int missed; | ||||
| 	int suppressed; | ||||
| 
 | ||||
| 	clock_gettime(CLOCK_MONOTONIC, &ts); | ||||
| 	if ((missed = spa_ratelimit_test(&impl->rate_limit, SPA_TIMESPEC_TO_NSEC(&ts))) >= 0) | ||||
| 		pw_log_warn("underflow (%d missed)", missed); | ||||
| 	if ((suppressed = spa_ratelimit_test(&impl->rate_limit, SPA_TIMESPEC_TO_NSEC(&ts))) >= 0) | ||||
| 		pw_log_warn("underflow (%d suppressed)", suppressed); | ||||
| 	impl->resync = true; | ||||
| } | ||||
| static void stream_overflow_cb(pa_stream *s, void *userdata) | ||||
| { | ||||
| 	struct impl *impl = userdata; | ||||
| 	struct timespec ts; | ||||
| 	int missed; | ||||
| 	int suppressed; | ||||
| 
 | ||||
| 	clock_gettime(CLOCK_MONOTONIC, &ts); | ||||
| 	if ((missed = spa_ratelimit_test(&impl->rate_limit, SPA_TIMESPEC_TO_NSEC(&ts))) >= 0) | ||||
| 		pw_log_warn("overflow (%d missed)", missed); | ||||
| 	if ((suppressed = spa_ratelimit_test(&impl->rate_limit, SPA_TIMESPEC_TO_NSEC(&ts))) >= 0) | ||||
| 		pw_log_warn("overflow (%d suppressed)", suppressed); | ||||
| 	impl->resync = true; | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Wim Taymans
						Wim Taymans