mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
pulse-server: always ask for tlength samples after flush
This commit is contained in:
parent
dcda6c259f
commit
55bd34c9e7
1 changed files with 3 additions and 6 deletions
|
|
@ -801,12 +801,9 @@ static int do_subscribe(struct client *client, uint32_t command, uint32_t tag, s
|
|||
|
||||
static void stream_flush(struct stream *stream)
|
||||
{
|
||||
uint32_t old;
|
||||
|
||||
old = stream->ring.writeindex;
|
||||
stream->ring.writeindex = stream->ring.readindex;
|
||||
stream->missing += (old - stream->ring.writeindex);
|
||||
stream->write_index = stream->read_index = stream->ring.writeindex;
|
||||
stream->write_index = stream->read_index =
|
||||
stream->ring.writeindex = stream->ring.readindex;
|
||||
stream->missing = stream->attr.tlength;
|
||||
|
||||
if (stream->attr.prebuf > 0)
|
||||
stream->in_prebuf = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue