v4l2object: Ensure max is not smaller then min in decide_allocation
https://bugzilla.gnome.org/show_bug.cgi?id=720568
This commit is contained in:
parent
b261287745
commit
61ce7b1a62
@ -3190,6 +3190,10 @@ gst_v4l2_object_decide_allocation (GstV4l2Object * obj, GstQuery * query)
|
||||
min += ctl.value;
|
||||
}
|
||||
|
||||
/* Request a bigger max, if one was suggested but it's too small */
|
||||
if (max != 0 && max < min)
|
||||
max = min;
|
||||
|
||||
/* select a pool */
|
||||
switch (obj->mode) {
|
||||
case GST_V4L2_IO_RW:
|
||||
|
Loading…
x
Reference in New Issue
Block a user