Skip to content
Commit 22fb392d authored by Hans de Goede's avatar Hans de Goede Committed by David King
Browse files

Fix cheese_camera_device_update_format_table loop

Some devices report a very small min_width / height down to reporting
0x0 as minimum resolution, which causes an infinite 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.

For more details on the infinite loop issue, see:
https://bugzilla.redhat.com/show_bug.cgi?id=850505



Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
parent 0b47b9b0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment