summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Rafael Giani <dv@pseudoterminal.org>2017-03-23 22:13:05 +0100
committerNicolas Dufresne <nicolas.dufresne@collabora.com>2017-03-24 14:00:14 -0400
commitcebf961dd53e38fb01420c6b20d6804ea69920cf (patch)
treeb31941c32b658ac27bc96a7e734ec9e16fbd76ea
parent2f68f8bd891f1529474af644f4475ee516596344 (diff)
downloadgstreamer-plugins-good-cebf961dd53e38fb01420c6b20d6804ea69920cf.tar.gz
v4l2object: Also add videometa if there is padding to the right and bottom
https://bugzilla.gnome.org/show_bug.cgi?id=780478
-rw-r--r--sys/v4l2/gstv4l2object.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/v4l2/gstv4l2object.c b/sys/v4l2/gstv4l2object.c
index 1e827b651..ac06b1fbd 100644
--- a/sys/v4l2/gstv4l2object.c
+++ b/sys/v4l2/gstv4l2object.c
@@ -3074,9 +3074,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)