mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	module-rtp: reset ringbuffer on resync
This commit is contained in:
		
							parent
							
								
									8eaf46a678
								
							
						
					
					
						commit
						1c9ffef813
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
					@ -568,6 +568,7 @@ static void receive_midi(struct session *sess, uint8_t *packet,
 | 
				
			||||||
			pw_log_info("sync to timestamp %u/%f direct:%d", timestamp, t,
 | 
								pw_log_info("sync to timestamp %u/%f direct:%d", timestamp, t,
 | 
				
			||||||
					sess->direct_timestamp);
 | 
										sess->direct_timestamp);
 | 
				
			||||||
			sess->have_sync = true;
 | 
								sess->have_sync = true;
 | 
				
			||||||
 | 
								sess->ring.readindex = sess->ring.writeindex;
 | 
				
			||||||
		} else {
 | 
							} else {
 | 
				
			||||||
			/* update our new rate correction */
 | 
								/* update our new rate correction */
 | 
				
			||||||
			sess->corr = spa_dll_update(&sess->dll, diff);
 | 
								sess->corr = spa_dll_update(&sess->dll, diff);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue