This is an automatic generated email to let you know that the following patch 
were queued at the 
http://git.linuxtv.org/v4l-utils.git tree:

Subject: qv4l2: fix segmentation fault when compiled without ALSA support.
Author:  Hans Verkuil <[email protected]>
Date:    Tue Jun 3 11:04:16 2014 +0200

If opening the video device fails, then qv4l2 attempts to disable
two alsa widgets. If qv4l2 was compiled without alsa support, then
those widget pointers are NULL and you get a segfault.

Add the proper #ifdef so this is only done if alsa support was
compiled in.

Signed-off-by: Hans Verkuil <[email protected]>

 utils/qv4l2/qv4l2.cpp |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

---

http://git.linuxtv.org/v4l-utils.git?a=commitdiff;h=341f2f04a552b3b436a957e95d8af250c2cd1afb

diff --git a/utils/qv4l2/qv4l2.cpp b/utils/qv4l2/qv4l2.cpp
index bcce927..5f26ff4 100644
--- a/utils/qv4l2/qv4l2.cpp
+++ b/utils/qv4l2/qv4l2.cpp
@@ -208,8 +208,10 @@ void ApplicationWindow::setDevice(const QString &device, 
bool rawOpen)
        connect(m_sigMapper, SIGNAL(mapped(int)), this, SLOT(ctrlAction(int)));
 
        if (!open(device, !rawOpen)) {
+#ifdef HAVE_ALSA
                m_showAllAudioAct->setEnabled(false);
                m_audioBufferAct->setEnabled(false);
+#endif
                return;
        }
 

_______________________________________________
linuxtv-commits mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to