mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-02-04 04:06:29 -05:00
module-rtp: Update ringbuffer indices upon resync with proper API calls
This commit is contained in:
parent
543000151f
commit
9f0dc9c1af
1 changed files with 2 additions and 1 deletions
|
|
@ -641,7 +641,8 @@ static void rtp_audio_process_capture(void *data)
|
|||
if (!impl->have_sync) {
|
||||
pw_log_info("(re)sync to timestamp:%u seq:%u ts_offset:%u SSRC:%u",
|
||||
actual_timestamp, impl->seq, impl->ts_offset, impl->ssrc);
|
||||
impl->ring.readindex = impl->ring.writeindex = actual_timestamp;
|
||||
spa_ringbuffer_read_update(&impl->ring, actual_timestamp);
|
||||
spa_ringbuffer_write_update(&impl->ring, actual_timestamp);
|
||||
memset(impl->buffer, 0, BUFFER_SIZE);
|
||||
impl->have_sync = true;
|
||||
expected_timestamp = actual_timestamp;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue