mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-02-11 04:27:56 -05:00
module-rtp: set the EMPTY flag on empty buffers
And make sure other flags are reset.
This commit is contained in:
parent
70aaec0ac4
commit
47ee9ef10a
3 changed files with 9 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue