From 3bbfd150476032db39083a7c01df8326d6283890 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Wed, 17 Jan 2018 11:08:25 +0100 Subject: v4l2: display stride and width values if stride is too small https://bugzilla.gnome.org/show_bug.cgi?id=792596 --- sys/v4l2/gstv4l2object.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/v4l2/gstv4l2object.c b/sys/v4l2/gstv4l2object.c index 8817f6987..995c719b8 100644 --- a/sys/v4l2/gstv4l2object.c +++ b/sys/v4l2/gstv4l2object.c @@ -3040,7 +3040,8 @@ gst_v4l2_object_save_format (GstV4l2Object * v4l2object, if (padded_width < format->fmt.pix.width) GST_WARNING_OBJECT (v4l2object->dbg_obj, - "Driver bug detected, stride is too small for the width"); + "Driver bug detected, stride (%d) is too small for the width (%d)", + padded_width, format->fmt.pix.width); align->padding_right = padded_width - info->width - align->padding_left; -- cgit v1.2.3