aboutsummaryrefslogtreecommitdiffstats
path: root/utils/qvidcap
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2018-08-20 09:51:58 +0200
committerHans Verkuil <hans.verkuil@cisco.com>2018-08-30 10:50:36 +0200
commit1ad8fbdb359e05f5c7cd522ad171241c1c7f6f5c (patch)
tree066a0e882dd7a3712ee0e89bcc6b68908cede21d /utils/qvidcap
parentde6ae16e1dd6b46f72621c820827c46481ee0544 (diff)
qvidcap: always allow overriding field
Changing the field setting doesn't change the resolution or buffer size, so this is safe to do even if m_canOverrideResolution is false. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Diffstat (limited to 'utils/qvidcap')
-rw-r--r--utils/qvidcap/capture-win-gl.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/utils/qvidcap/capture-win-gl.cpp b/utils/qvidcap/capture-win-gl.cpp
index 22627263..fe3f5014 100644
--- a/utils/qvidcap/capture-win-gl.cpp
+++ b/utils/qvidcap/capture-win-gl.cpp
@@ -496,8 +496,8 @@ void CaptureGLWin::contextMenuEvent(QContextMenuEvent *event)
if (m_canOverrideResolution) {
menu.addAction(m_resolutionOverride);
menu.addMenu(m_fmtMenu);
- menu.addMenu(m_fieldMenu);
}
+ menu.addMenu(m_fieldMenu);
menu.addMenu(m_colorspaceMenu);
menu.addMenu(m_xferFuncMenu);
if (m_is_hsv)
@@ -599,8 +599,6 @@ void CaptureGLWin::keyPressEvent(QKeyEvent *event)
updateShader();
return;
case Qt::Key_I:
- if (!m_canOverrideResolution)
- return;
cycleMenu(m_overrideField, m_origField,
fields, hasShift, hasCtrl);
printf("New Field: %s\n", field2s(m_overrideField).c_str());

Privacy Policy