mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
properly account for seeks in the requested_bytes counter
This commit is contained in:
parent
380e97a596
commit
373b5efe51
11 changed files with 55 additions and 50 deletions
|
|
@ -364,10 +364,10 @@ static void pstream_memblock_callback(pa_pstream *p, uint32_t channel, int64_t o
|
|||
if ((s = pa_dynarray_get(c->record_streams, channel))) {
|
||||
|
||||
if (chunk->memblock) {
|
||||
pa_memblockq_seek(s->record_memblockq, offset, seek);
|
||||
pa_memblockq_seek(s->record_memblockq, offset, seek, TRUE);
|
||||
pa_memblockq_push_align(s->record_memblockq, chunk);
|
||||
} else
|
||||
pa_memblockq_seek(s->record_memblockq, offset+chunk->length, seek);
|
||||
pa_memblockq_seek(s->record_memblockq, offset+chunk->length, seek, TRUE);
|
||||
|
||||
if (s->read_callback) {
|
||||
size_t l;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue