module-rtp: reset ringbuffer on resync

This commit is contained in:
Wim Taymans 2023-02-17 15:38:11 +01:00
parent 8eaf46a678
commit 1c9ffef813

View file

@ -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);