Skip to content

Commit

Permalink
waylandsink: Update video info size to buffer size
Browse files Browse the repository at this point in the history
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
  • Loading branch information
ndufresne committed Nov 25, 2017
1 parent 02df3a4 commit cc03335
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/wayland/gstwaylandsink.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 "
Expand Down

0 comments on commit cc03335

Please sign in to comment.