qv4l2: general-tab: make sure m_width and height get a proper init value
authorHans de Goede <hdegoede@redhat.com>
Mon, 9 May 2011 18:23:14 +0000 (20:23 +0200)
committerHans de Goede <hdegoede@redhat.com>
Tue, 10 May 2011 08:45:21 +0000 (10:45 +0200)
commitf84ee0fee09ed8be4929906451f2e1a1e226fc5b
treee9fb199f0b9a381d2a3bc7cd739af4f9fbc28be8
parent718d8a76b54b08cc240e16f405aff36cdf6b0164
qv4l2: general-tab: make sure m_width and height get a proper init value

m_width and m_height were not getting assigned any meaningful value on
startup, this causes the enum_frameintervals call inframeIntervalChanged
to fail. This patch makes sure that m_width and m_height get assigned
the actual width and height on startup, by setting them from updateVidCapFormat
this also removes the need for passing the actual width and height into
updateFrameSize and updateFrameInterval, they can now simply use
m_width and m_height since these are now always accurate.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
utils/qv4l2/general-tab.cpp
utils/qv4l2/general-tab.h