diff options
author | Tim-Philipp Müller <tim@centricular.com> | 2016-07-18 14:20:11 +0100 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2016-07-25 13:25:04 +0300 |
commit | da25c560a1dc05c2a2a519281f151cefa078bb40 (patch) | |
tree | 2f9a4495a144347d310212aa4499c20d6663d30e | |
parent | 90eda8650b2d6a892650408ce98006009589f6ad (diff) | |
download | gstreamer-plugins-base-da25c560a1dc05c2a2a519281f151cefa078bb40.tar.gz |
xvimagesink: only error out if the allocated memory is too small
https://bugzilla.gnome.org/show_bug.cgi?id=767712
-rw-r--r-- | sys/xvimage/xvimageallocator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/xvimage/xvimageallocator.c b/sys/xvimage/xvimageallocator.c index c5be6db1d..9c75489b5 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 */ |