qv4l2: reset bytesperline when changing pixelformat.
authorHans Verkuil <hans.verkuil@cisco.com>
Wed, 13 Aug 2014 14:20:19 +0000 (16:20 +0200)
committerHans Verkuil <hans.verkuil@cisco.com>
Wed, 13 Aug 2014 14:20:19 +0000 (16:20 +0200)
commite7a6fb8aa05ef81945321d47793d6b296a3ad997
treed725963b870c47a4ad56e1e11893dd67cdab3ca2
parent02b4e94eed8ae396e0b10a67e49acc2e0d4194de
qv4l2: reset bytesperline when changing pixelformat.

When changing the width or the pixelformat, make sure to zero bytesperline
when setting the format to force the driver to recalculate bytesperline.

This was done for the width, but not the pixelformat.

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