qv4l2: correctly update frame width and height for fixed resolutions.
authorHans Verkuil <hans.verkuil@cisco.com>
Sat, 2 Mar 2013 10:28:23 +0000 (11:28 +0100)
committerHans Verkuil <hans.verkuil@cisco.com>
Sat, 2 Mar 2013 10:28:23 +0000 (11:28 +0100)
When selecting a specific resolution the width and height fields were
only disabled, but not updated to that resolution. Fixed.

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

index 5bd4f93..4c052b5 100644 (file)
@@ -919,6 +919,12 @@ void GeneralTab::updateFrameSize()
 
                m_frameWidth->setEnabled(false);
                m_frameHeight->setEnabled(false);
+               m_frameWidth->setMinimum(m_width);
+               m_frameWidth->setMaximum(m_width);
+               m_frameWidth->setValue(m_width);
+               m_frameHeight->setMinimum(m_height);
+               m_frameHeight->setMaximum(m_height);
+               m_frameHeight->setValue(m_height);
                m_frameSize->setEnabled(true);
                updateFrameInterval();
                return;