mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 00:06:36 +00:00
v4l2src: do not ignore the largest resolution
The 'max' value isn't an STL style "one after the end" bound, but the largest allowed value. https://bugzilla.gnome.org/show_bug.cgi?id=665387
This commit is contained in:
parent
b5324c288b
commit
2b0a001d0d
1 changed files with 1 additions and 1 deletions
|
@ -1834,7 +1834,7 @@ gst_v4l2_object_probe_caps_for_format (GstV4l2Object * v4l2object,
|
||||||
size.stepwise.step_height);
|
size.stepwise.step_height);
|
||||||
|
|
||||||
for (w = size.stepwise.min_width, h = size.stepwise.min_height;
|
for (w = size.stepwise.min_width, h = size.stepwise.min_height;
|
||||||
w < size.stepwise.max_width && h < size.stepwise.max_height;
|
w <= size.stepwise.max_width && h <= size.stepwise.max_height;
|
||||||
w += size.stepwise.step_width, h += size.stepwise.step_height) {
|
w += size.stepwise.step_width, h += size.stepwise.step_height) {
|
||||||
if (w == 0 || h == 0)
|
if (w == 0 || h == 0)
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in a new issue