fb43c60
diff -up cheese-2.24.1/src/cheese-webcam.c~ cheese-2.24.1/src/cheese-webcam.c
fb43c60
--- cheese-2.24.1/src/cheese-webcam.c~	2008-11-09 17:05:26.000000000 +0100
fb43c60
+++ cheese-2.24.1/src/cheese-webcam.c	2008-11-09 17:05:26.000000000 +0100
fb43c60
@@ -567,7 +567,9 @@ cheese_webcam_get_supported_video_format
fb43c60
 
fb43c60
       cur_width  = min_width;
fb43c60
       cur_height = min_height;
fb43c60
-      while (cur_width < max_width && cur_height < max_height)
fb43c60
+      /* Gstreamer will sometimes give us a range with min_xxx == max_xxx,
fb43c60
+         we use <= here (and not below) to make this work */
fb43c60
+      while (cur_width <= max_width && cur_height <= max_height)
fb43c60
       {
fb43c60
         CheeseVideoFormat video_format;
fb43c60