summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2016-07-18 14:20:11 +0100
committerTim-Philipp Müller <tim@centricular.com>2016-07-18 14:20:11 +0100
commit3273714e0a9d41d86d0013e6d6d4655162ba6da0 (patch)
treed60389260a7dc6fa3e90cae567c2eaba6823961d /sys
parentf00bbd2ea543e55c2b38ed80e8493e3119c9eb58 (diff)
xvimagesink: only error out if the allocated memory is too small
https://bugzilla.gnome.org/show_bug.cgi?id=767712
Diffstat (limited to 'sys')
-rw-r--r--sys/xvimage/xvimageallocator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/xvimage/xvimageallocator.c b/sys/xvimage/xvimageallocator.c
index 47c7da007..3a2728c23 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 */