v4l2: display stride and width values if stride is too small
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Wed, 17 Jan 2018 10:08:25 +0000 (11:08 +0100)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Wed, 17 Jan 2018 18:32:58 +0000 (13:32 -0500)
https://bugzilla.gnome.org/show_bug.cgi?id=792596

sys/v4l2/gstv4l2object.c

index 8817f69..995c719 100644 (file)
@@ -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;