From: Carlos Rafael Giani Date: Thu, 23 Mar 2017 21:13:05 +0000 (+0100) Subject: v4l2object: Also add videometa if there is padding to the right and bottom X-Git-Tag: 1.19.3~509^2~2166 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=79d9cd44b6b4723acfc607f42f0b7bace543cb83;p=platform%2Fupstream%2Fgstreamer.git v4l2object: Also add videometa if there is padding to the right and bottom https://bugzilla.gnome.org/show_bug.cgi?id=780478 --- diff --git a/sys/v4l2/gstv4l2object.c b/sys/v4l2/gstv4l2object.c index 91c8ff0..ed4654e 100644 --- a/sys/v4l2/gstv4l2object.c +++ b/sys/v4l2/gstv4l2object.c @@ -3070,9 +3070,10 @@ store_info: GST_DEBUG_OBJECT (v4l2object->element, "Got sizeimage %" G_GSIZE_FORMAT, info->size); - /* to avoid copies we need video meta if top or left padding */ + /* to avoid copies we need video meta if there is padding */ v4l2object->need_video_meta = - ((align->padding_top + align->padding_left) != 0); + ((align->padding_top + align->padding_left + align->padding_right + + align->padding_bottom) != 0); /* ... or if stride is non "standard" */ if (!standard_stride)