module-rtp: set the EMPTY flag on empty buffers

And make sure other flags are reset.
This commit is contained in:
Wim Taymans 2025-07-02 11:12:40 +02:00
parent 70aaec0ac4
commit 47ee9ef10a
3 changed files with 9 additions and 4 deletions

View file

@ -87,9 +87,10 @@ static void rtp_opus_process_playback(void *data)
timestamp += wanted;
spa_ringbuffer_read_update(&impl->ring, timestamp);
}
d[0].chunk->offset = 0;
d[0].chunk->size = wanted * stride;
d[0].chunk->stride = stride;
d[0].chunk->offset = 0;
d[0].chunk->flags = 0;
buf->size = wanted;
pw_stream_queue_buffer(impl->stream, buf);