mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	module-rtp: clear ringbuffer in resync
When we resync to the timestamp, clear the ringbuffer to avoid playing old stale samples.
This commit is contained in:
		
							parent
							
								
									aa3b776f6f
								
							
						
					
					
						commit
						965b220206
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -435,6 +435,7 @@ on_rtp_io(void *data, int fd, uint32_t mask)
 | 
			
		|||
 | 
			
		||||
			spa_dll_init(&sess->dll);
 | 
			
		||||
			spa_dll_set_bw(&sess->dll, SPA_DLL_BW_MIN, 128, sess->info.info.rate);
 | 
			
		||||
			memset(sess->buffer, 0, BUFFER_SIZE);
 | 
			
		||||
			sess->have_sync = true;
 | 
			
		||||
		} else if (expected_timestamp != timestamp) {
 | 
			
		||||
			pw_log_debug("unexpected timestamp (%u != %u)",
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue