mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
test-v4l2: call process before looking at io
This commit is contained in:
parent
ad35e8ef3b
commit
4615c5781a
1 changed files with 6 additions and 3 deletions
|
|
@ -168,6 +168,12 @@ static void on_source_process(void *_data, int status)
|
|||
|
||||
handle_events(data);
|
||||
|
||||
if ((res = spa_node_process(data->source)) < 0)
|
||||
printf("got process error %d\n", res);
|
||||
|
||||
if (io->buffer_id > MAX_BUFFERS)
|
||||
return;
|
||||
|
||||
b = &data->buffers[io->buffer_id];
|
||||
|
||||
datas = b->buffer.datas;
|
||||
|
|
@ -231,9 +237,6 @@ static void on_source_process(void *_data, int status)
|
|||
}
|
||||
|
||||
io->status = SPA_STATUS_NEED_BUFFER;
|
||||
|
||||
if ((res = spa_node_process(data->source)) < 0)
|
||||
printf("got pull error %d\n", res);
|
||||
}
|
||||
|
||||
static const struct spa_node_callbacks source_callbacks = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue