mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
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:
parent
479ba33685
commit
afb4a2f49c
1 changed files with 3 additions and 1 deletions
|
|
@ -676,7 +676,9 @@ 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] = 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;
|
||||
|
||||
video_size += d->chunk->size;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue