mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -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,
|
||||
sess->direct_timestamp);
|
||||
sess->have_sync = true;
|
||||
sess->ring.readindex = sess->ring.writeindex;
|
||||
} else {
|
||||
/* update our new rate correction */
|
||||
sess->corr = spa_dll_update(&sess->dll, diff);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue