Revert "gst: src: Minor fix for offsets"

This reverts commit 4c200183b9.

The offset is already applied when we share/copy the memory in the
target buffer.
This commit is contained in:
Wim Taymans 2025-03-26 17:54:37 +01:00
parent 479ba33685
commit afb4a2f49c

View file

@ -676,7 +676,9 @@ static GstBuffer *dequeue_buffer(GstPipeWireSrc *pwsrc)
for (i = 0; i < MIN (n_datas, n_planes); i++) { for (i = 0; i < MIN (n_datas, n_planes); i++) {
struct spa_data *d = &b->buffer->datas[i]; struct spa_data *d = &b->buffer->datas[i];
meta->offset[i] = d->chunk->offset + video_size; /* don't add the chunk offset here, this is done below when we
* share/copy the memory in the target buffer below */
meta->offset[i] = video_size;
meta->stride[i] = d->chunk->stride; meta->stride[i] = d->chunk->stride;
video_size += d->chunk->size; video_size += d->chunk->size;