qv4l2: fix enabling/disable frame width/height/size
authorHans Verkuil <hans.verkuil@cisco.com>
Mon, 7 Jul 2014 12:22:10 +0000 (14:22 +0200)
committerHans Verkuil <hans.verkuil@cisco.com>
Mon, 7 Jul 2014 12:22:10 +0000 (14:22 +0200)
commit0a39c2b71e6253dcf399fcee8c362c4ab02ccc0b
treeb98aedfd02d88ef51ae659a9a9dfa522a29b3ab2
parentcd6cebfaed4ebe4936bb39563f80d61d73e0049b
qv4l2: fix enabling/disable frame width/height/size

The logic that dealt with when the frame width, height and size
fields had to be enabled and disabled was flawed. Starting and
stopping streaming would just enable all those field unconditionally,
and updating the format state could enable them while streaming.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
utils/qv4l2/general-tab.cpp
utils/qv4l2/general-tab.h