qv4l2: fix segfault when openGL is not compiled in.
authorHans Verkuil <hans.verkuil@cisco.com>
Sat, 9 Aug 2014 09:36:33 +0000 (11:36 +0200)
committerHans Verkuil <hans.verkuil@cisco.com>
Sat, 9 Aug 2014 09:36:33 +0000 (11:36 +0200)
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
utils/qv4l2/qv4l2.cpp

index fafdf88..2b3bb91 100644 (file)
@@ -963,7 +963,9 @@ void ApplicationWindow::stopStreaming()
                m_capture->stop();
 
        m_snapshotAct->setDisabled(true);
+#ifdef HAVE_QTGL
        m_useGLAct->setEnabled(CaptureWinGL::isSupported());
+#endif
        switch (m_capMethod) {
        case methodRead:
                if (v4l_type_is_capture(g_type())) {