From 4c200183b97a7a97e6dfbdc55eacd36dc382986a Mon Sep 17 00:00:00 2001 From: Arun Raghavan Date: Wed, 26 Mar 2025 09:26:38 -0400 Subject: [PATCH] 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. --- src/gst/gstpipewiresrc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gst/gstpipewiresrc.c b/src/gst/gstpipewiresrc.c index 68a9e0452..963c6863f 100644 --- a/src/gst/gstpipewiresrc.c +++ b/src/gst/gstpipewiresrc.c @@ -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;