summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>2011-02-03 22:42:59 (GMT)
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>2011-02-04 09:49:06 (GMT)
commit6b86b56abd8a28b9e94cee679e3d86367a9a0ab3 (patch)
tree996ff280a495988f9fe4b9470b03f5e2ee222a74
parent61382aad280abfd719c5ce23b4cd0fe34552b1c1 (diff)
v4l2: fix interlaced set_format configuration
Commit 6c8268dbfd5c88fac28c882ef2e4598a6522e2d6 broke recording from interlaced v4l2 source (e.g. typical tv capture card) since V4L2_FIELD_SEQ_TB (with fields stored separately) does not map to currently defined interlaced format (fields stored interleaved). Besides this mismatch, hardware might quite likely not support or appreciate this field value, since querying supported formats mapped _INTERLACED field formats to interlaced=true caps (so the latter should not be mapped to field value that is not known to be supported).
-rw-r--r--sys/v4l2/gstv4l2object.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/v4l2/gstv4l2object.c b/sys/v4l2/gstv4l2object.c
index 7e15489..5c9022c 100644
--- a/sys/v4l2/gstv4l2object.c
+++ b/sys/v4l2/gstv4l2object.c
@@ -2019,7 +2019,7 @@ gst_v4l2_object_set_format (GstV4l2Object * v4l2object, guint32 pixelformat,
/* ideally we would differentiate between types of interlaced video
* but there is not sufficient information in the caps..
*/
- field = V4L2_FIELD_SEQ_TB;
+ field = V4L2_FIELD_INTERLACED;
} else {
GST_DEBUG_OBJECT (v4l2object->element, "progressive video");
field = V4L2_FIELD_NONE;