module-rtp: Reset ring buffer contents when stream starts

This commit is contained in:
Carlos Rafael Giani 2025-08-05 11:54:52 +02:00 committed by Wim Taymans
parent c9a8b8629f
commit 97a1609b29
2 changed files with 17 additions and 1 deletions

View file

@ -337,7 +337,7 @@ static int rtp_audio_receive(struct impl *impl, uint8_t *buffer, ssize_t len)
*
* (Note that this write index update is only important if
* the constant delay mode is active, or if no spa_io_position
* was provided yet. See the rtp_audio_process_playback()
* was not provided yet. See the rtp_audio_process_playback()
* code for more about this.) */
if (expected_write < (write + samples)) {
write += samples;