qv4l2: m_useGLAct is only available if HAVE_QTGL is set.
authorHans Verkuil <hans.verkuil@cisco.com>
Wed, 16 Jul 2014 22:00:17 +0000 (00:00 +0200)
committerHans Verkuil <hans.verkuil@cisco.com>
Wed, 16 Jul 2014 22:00:17 +0000 (00:00 +0200)
Put #ifdef HAVE_QTGL around it to prevent a crash if it wasn't compiled
with opengl.

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

index 886b03f..3490714 100644 (file)
@@ -264,7 +264,9 @@ void ApplicationWindow::setDevice(const QString &device, bool rawOpen)
        m_convertData = v4lconvert_create(fd());
        m_capStartAct->setEnabled(fd() >= 0);
        m_saveRawAct->setEnabled(fd() >= 0);
+#ifdef HAVE_QTGL
        m_useGLAct->setEnabled(CaptureWinGL::isSupported());
+#endif
        m_ctrlNotifier = new QSocketNotifier(fd(), QSocketNotifier::Exception, m_tabs);
        connect(m_ctrlNotifier, SIGNAL(activated(int)), this, SLOT(ctrlEvent()));
 }