LADI
/
spa
1
Fork 0

gst: fill default stride in metadata

When there is no metadata on the buffer, use the default video stride
as the stride on the pipewire buffers instead of 0.

Fixes #3236
This commit is contained in:
Wim Taymans 2023-05-23 09:00:30 +02:00
parent b8fe832188
commit bb72e3bc00
1 changed files with 1 additions and 1 deletions

View File

@ -482,7 +482,7 @@ do_send_buffer (GstPipeWireSink *pwsink, GstBuffer *buffer)
GstMemory *mem = gst_buffer_peek_memory (buffer, i);
d->chunk->offset = mem->offset;
d->chunk->size = mem->size;
d->chunk->stride = 0;
d->chunk->stride = pwsink->pool->video_info.stride[i];
}
GstVideoMeta *meta = gst_buffer_get_video_meta (buffer);