mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-02-11 04:27:56 -05:00
module-rtp: Reset ring buffer contents when stream starts
This commit is contained in:
parent
c9a8b8629f
commit
97a1609b29
2 changed files with 17 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue