qv4l2: fix incorrect call to s_fmt when disabling width/height
authorHans Verkuil <hans.verkuil@cisco.com>
Mon, 3 Mar 2014 09:44:57 +0000 (10:44 +0100)
committerHans Verkuil <hans.verkuil@cisco.com>
Mon, 3 Mar 2014 09:44:57 +0000 (10:44 +0100)
commit35a7e7d703723d0b05fcc8ea2ff109581bd181b2
treeb1406134d5c25cc1910fc76ac7e7d230111910d8
parent8928c32cd93919f70903b586607c2ab050c38852
qv4l2: fix incorrect call to s_fmt when disabling width/height

When the frame width and height fields are disabled because we start
streaming, the editingFinished event is triggered as well, which
causes an attempt to change the format. This causes EBUSY warnings
because it really isn't allowed to do that anymore. Check if the
field is really enabled before we change the format, thus squashing
the warnings.

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