mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
pw-cat: set buffer size field in frames
So that we get a meaningful value for the pw_time.queued field.
This commit is contained in:
parent
5ec7a9f40c
commit
0503ced8ab
1 changed files with 3 additions and 1 deletions
|
|
@ -967,8 +967,10 @@ static void on_process(void *userdata)
|
||||||
d->chunk->stride = data->stride;
|
d->chunk->stride = data->stride;
|
||||||
d->chunk->size = n_fill_frames * data->stride;
|
d->chunk->size = n_fill_frames * data->stride;
|
||||||
have_data = true;
|
have_data = true;
|
||||||
} else if (n_fill_frames < 0)
|
b->size = n_frames;
|
||||||
|
} else if (n_fill_frames < 0) {
|
||||||
fprintf(stderr, "fill error %d\n", n_fill_frames);
|
fprintf(stderr, "fill error %d\n", n_fill_frames);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
offset = SPA_MIN(d->chunk->offset, d->maxsize);
|
offset = SPA_MIN(d->chunk->offset, d->maxsize);
|
||||||
size = SPA_MIN(d->chunk->size, d->maxsize - offset);
|
size = SPA_MIN(d->chunk->size, d->maxsize - offset);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue