video-src: always set chunk info

This commit is contained in:
Wim Taymans 2019-01-31 10:59:43 +01:00
parent bebc8edbc3
commit 7ec9de5ac6
2 changed files with 5 additions and 3 deletions

@ -1 +1 @@
Subproject commit 1fd2e6beaeda756843aa2adf81297232a2919446 Subproject commit 6cd1104d0c9fb0213f371e7b4b12925d70e2f2d7

View file

@ -163,7 +163,7 @@ static void on_timeout(void *userdata, uint64_t expirations)
for (j = 0; j < data->format.size.width * BPP; j++) { for (j = 0; j < data->format.size.width * BPP; j++) {
p[j] = data->counter + j * i; p[j] = data->counter + j * i;
} }
p += buf->datas[0].chunk->stride; p += data->stride;
data->counter += 13; data->counter += 13;
} }
@ -171,7 +171,9 @@ static void on_timeout(void *userdata, uint64_t expirations)
if (data->accumulator >= M_PI_M2) if (data->accumulator >= M_PI_M2)
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); pw_stream_queue_buffer(data->stream, b);
} }