From 86646ce03b3dcff6dce2617ee51598c92aa428b1 Mon Sep 17 00:00:00 2001 From: Nicolas Dufresne Date: Sat, 7 Dec 2013 14:03:53 -0500 Subject: [PATCH] v4l2bufferpool: On warn on size change if n_planes > 1 https://bugzilla.gnome.org/show_bug.cgi?id=720568 --- sys/v4l2/gstv4l2bufferpool.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/v4l2/gstv4l2bufferpool.c b/sys/v4l2/gstv4l2bufferpool.c index a9529cddac..430dea0e0d 100644 --- a/sys/v4l2/gstv4l2bufferpool.c +++ b/sys/v4l2/gstv4l2bufferpool.c @@ -1163,7 +1163,8 @@ gst_v4l2_buffer_pool_release_buffer (GstBufferPool * bpool, GstBuffer * buffer) for (i = 0; i < meta->n_planes; i++) total_length += meta->vplanes[i].length; - if (total_length != gst_buffer_get_size (buffer)) { + if (total_length != gst_buffer_get_size (buffer) && + obj->info.finfo->n_planes > 1) { /* FIXME if the lengths has actually changed it may require * to restore the sizes of the individual memories and * re-add them */