summaryrefslogtreecommitdiffstats
path: root/sys/v4l2/gstv4l2src.c
diff options
context:
space:
mode:
authorEdgard Lima <edgard.lima@indt.org.br>2006-08-22 20:39:26 +0000
committerEdgard Lima <edgard.lima@indt.org.br>2006-08-22 20:39:26 +0000
commitdddd1369b8a899f4d0e700ec3c163a8d3f8a4ba1 (patch)
tree4e94308196dcb90ebe893c5b71b3f807d35c3714 /sys/v4l2/gstv4l2src.c
parent04895ee2ca48224c122ce2fcd8c63a287b357719 (diff)
Fixed query size to work with drivers that uses intermediate step like "width * height" to find closest size.
Original commit message from CVS: Fixed query size to work with drivers that uses intermediate step like "width * height" to find closest size.
Diffstat (limited to 'sys/v4l2/gstv4l2src.c')
-rw-r--r--sys/v4l2/gstv4l2src.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/v4l2/gstv4l2src.c b/sys/v4l2/gstv4l2src.c
index 39e35cbe..bf8a2dd4 100644
--- a/sys/v4l2/gstv4l2src.c
+++ b/sys/v4l2/gstv4l2src.c
@@ -399,8 +399,8 @@ gst_v4l2src_fixate (GstPad * pad, GstCaps * caps)
structure = gst_caps_get_structure (caps, i);
const GValue *v;
- gst_structure_fixate_field_nearest_int (structure, "width", G_MAXINT);
- gst_structure_fixate_field_nearest_int (structure, "height", G_MAXINT);
+ gst_structure_fixate_field_nearest_int (structure, "width", 4096);
+ gst_structure_fixate_field_nearest_int (structure, "height", 4096);
gst_structure_fixate_field_nearest_fraction (structure, "framerate", 15, 2);
v = gst_structure_get_value (structure, "format");