From: Bodo Eggert <7eggert@gmx.de>
Description: Print out possible grab sizes on error.
Index: vgrabbj-0.9.6/v_config.c
===================================================================
--- vgrabbj-0.9.6.orig/v_config.c	2011-06-22 00:24:33.000000000 -0500
+++ vgrabbj-0.9.6/v_config.c	2011-06-22 00:24:37.000000000 -0500
@@ -370,8 +370,11 @@
   if ( (vconf->vcap.maxwidth < vconf->win.width) ||
        (vconf->vcap.minwidth > vconf->win.width) ||
        (vconf->vcap.maxheight < vconf->win.height) ||
-       (vconf->vcap.minheight > vconf->win.height) )
+       (vconf->vcap.minheight > vconf->win.height) ) {
+    v_error(vconf, LOG_NOTICE, "Device %d <= width <= %d, %d <= height <= %d, desired image size = %dx%d\n",
+    	vconf->vcap.minwidth, vconf->vcap.maxwidth, vconf->vcap.minheight, vconf->vcap.maxheight, vconf->win.width, vconf->win.height);
     v_error(vconf, LOG_CRIT, "Device doesn't support width/height");
+  }
   while (v4l1_ioctl(vconf->dev, VIDIOCGWIN, &twin))
     v_error(vconf, LOG_ERR, "Problem getting window information");
   vconf->win.flags=twin.flags;
