gst: src: Minor fix for offsets

I don't see any actual usage of left/top padding (yet), but we should
account for chunk offset in addition to the overall size.
This commit is contained in:
Arun Raghavan 2025-03-26 09:26:38 -04:00
parent cc6081b70d
commit 4c200183b9

View file

@ -676,7 +676,7 @@ static GstBuffer *dequeue_buffer(GstPipeWireSrc *pwsrc)
for (i = 0; i < MIN (n_datas, n_planes); i++) {
struct spa_data *d = &b->buffer->datas[i];
meta->offset[i] = video_size;
meta->offset[i] = d->chunk->offset + video_size;
meta->stride[i] = d->chunk->stride;
video_size += d->chunk->size;