GNOME Bugzilla – Bug 682443
PATCH: Fix cheese_camera_device_update_format_table() going into an infinite loop
Last modified: 2012-08-22 20:11:29 UTC
Created attachment 222119 [details] [review] PATCH: Fix cheese_camera_device_update_format_table() going into an infinite loop Some devices report a very small min_width / height down to reporting 0x0 as minimum resolution, which causes an infinte loop in cheese_camera_device_update_format_table(). This patch limits the minimum resultion to 160x120, both to fix the infinite loop issue, and to remove ridiculous resolutions such as 2x2, 5x3, 11x7, 22x15 etc. which are seen in the resolution drop down on some devices.
Comment on attachment 222119 [details] [review] PATCH: Fix cheese_camera_device_update_format_table() going into an infinite loop Pushed to master as commit 22fb392d2393019016420e158f90b3f7bf561cde, thanks.