mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
waylandsink: Update video info size to buffer size
We where setting the size to the first memory size, this may be too small in case we received a buffer with multiple memory. https://bugzilla.gnome.org/show_bug.cgi?id=790057
This commit is contained in:
parent
02df3a47b3
commit
cc033355ab
1 changed files with 1 additions and 1 deletions
|
@ -684,7 +684,7 @@ gst_wayland_sink_show_frame (GstVideoSink * vsink, GstBuffer * buffer)
|
|||
sink->video_info.offset[i] = vmeta->offset[i];
|
||||
sink->video_info.stride[i] = vmeta->stride[i];
|
||||
}
|
||||
sink->video_info.size = mem->size;
|
||||
sink->video_info.size = gst_buffer_get_size (buffer);
|
||||
}
|
||||
|
||||
GST_LOG_OBJECT (sink, "buffer %p does not have a wl_buffer from our "
|
||||
|
|
Loading…
Reference in a new issue