mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
xvimagesink: only error out if the allocated memory is too small
https://bugzilla.gnome.org/show_bug.cgi?id=767712
This commit is contained in:
parent
f00bbd2ea5
commit
3273714e0a
1 changed files with 1 additions and 1 deletions
|
@ -443,7 +443,7 @@ gst_xvimage_allocator_alloc (GstXvImageAllocator * allocator, gint im_format,
|
|||
expected_size = padded_height * GST_ROUND_UP_4 (padded_width *
|
||||
GST_VIDEO_FORMAT_INFO_PSTRIDE (info->finfo, 0));
|
||||
}
|
||||
if (expected_size != 0 && mem->xvimage->data_size != expected_size)
|
||||
if (expected_size != 0 && mem->xvimage->data_size < expected_size)
|
||||
goto unexpected_size;
|
||||
|
||||
/* Be verbose about our XvImage stride */
|
||||
|
|
Loading…
Reference in a new issue