gst: dequeue a shared buffer instead of original pool buffer

This seems to prevent the pool buffer from getting corrupted.

Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
This commit is contained in:
James Hilliard 2022-06-01 04:03:37 -06:00
parent 7305d38b85
commit a1f33a99df
4 changed files with 16 additions and 18 deletions

View file

@ -466,7 +466,7 @@ do_send_buffer (GstPipeWireSink *pwsink, GstBuffer *buffer)
for (i = 0; i < b->n_datas; i++) {
struct spa_data *d = &b->datas[i];
GstMemory *mem = gst_buffer_peek_memory (buffer, i);
d->chunk->offset = mem->offset - data->offset;
d->chunk->offset = mem->offset;
d->chunk->size = mem->size;
}