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:
Nicolas Dufresne 2017-11-21 23:17:14 -05:00
parent 02df3a47b3
commit cc033355ab

View file

@ -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 "