mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
video-src: always set chunk info
This commit is contained in:
parent
bebc8edbc3
commit
7ec9de5ac6
2 changed files with 5 additions and 3 deletions
|
|
@ -1 +1 @@
|
|||
Subproject commit 1fd2e6beaeda756843aa2adf81297232a2919446
|
||||
Subproject commit 6cd1104d0c9fb0213f371e7b4b12925d70e2f2d7
|
||||
|
|
@ -163,7 +163,7 @@ static void on_timeout(void *userdata, uint64_t expirations)
|
|||
for (j = 0; j < data->format.size.width * BPP; j++) {
|
||||
p[j] = data->counter + j * i;
|
||||
}
|
||||
p += buf->datas[0].chunk->stride;
|
||||
p += data->stride;
|
||||
data->counter += 13;
|
||||
}
|
||||
|
||||
|
|
@ -171,7 +171,9 @@ static void on_timeout(void *userdata, uint64_t expirations)
|
|||
if (data->accumulator >= M_PI_M2)
|
||||
data->accumulator -= M_PI_M2;
|
||||
|
||||
buf->datas[0].chunk->size = buf->datas[0].maxsize;
|
||||
buf->datas[0].chunk->offset = 0;
|
||||
buf->datas[0].chunk->size = data->format.size.height * data->stride;
|
||||
buf->datas[0].chunk->stride = data->stride;
|
||||
|
||||
pw_stream_queue_buffer(data->stream, b);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue