From 3273714e0a9d41d86d0013e6d6d4655162ba6da0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Mon, 18 Jul 2016 14:20:11 +0100 Subject: [PATCH] xvimagesink: only error out if the allocated memory is too small https://bugzilla.gnome.org/show_bug.cgi?id=767712 --- sys/xvimage/xvimageallocator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/xvimage/xvimageallocator.c b/sys/xvimage/xvimageallocator.c index 47c7da0073..3a2728c23c 100644 --- a/sys/xvimage/xvimageallocator.c +++ b/sys/xvimage/xvimageallocator.c @@ -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 */