cheese r1128 - in branches/gnome-2-24: . src



Author: dgsiegel
Date: Sun Nov  9 18:39:11 2008
New Revision: 1128
URL: http://svn.gnome.org/viewvc/cheese?rev=1128&view=rev

Log:
cheese now works for cams which support only one resolution, fixes bug #560032, courtesy of Hans de Goede


Modified:
   branches/gnome-2-24/ChangeLog
   branches/gnome-2-24/src/cheese-webcam.c

Modified: branches/gnome-2-24/src/cheese-webcam.c
==============================================================================
--- branches/gnome-2-24/src/cheese-webcam.c	(original)
+++ branches/gnome-2-24/src/cheese-webcam.c	Sun Nov  9 18:39:11 2008
@@ -562,7 +562,9 @@
 
       cur_width  = min_width;
       cur_height = min_height;
-      while (cur_width < max_width && cur_height < max_height)
+      /* Gstreamer will sometimes give us a range with min_xxx == max_xxx,
+         we use <= here (and not below) to make this work */
+      while (cur_width <= max_width && cur_height <= max_height)
       {
         CheeseVideoFormat video_format;
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]