qv4l2: open the device node using libv4l if supplied on the command line.
authorHans Verkuil <hverkuil@xs4all.nl>
Fri, 24 Dec 2010 18:50:28 +0000 (19:50 +0100)
committerHans Verkuil <hverkuil@xs4all.nl>
Fri, 24 Dec 2010 18:50:28 +0000 (19:50 +0100)
It did open the device node using the system call open(), but libv4l should
be used by default. The difference in behavior between passing the device node
on the command line and via the open button on the toolbar was confusing.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
utils/qv4l2/qv4l2.cpp

index 9d11a46..5646bcf 100644 (file)
@@ -522,7 +522,7 @@ int main(int argc, char **argv)
        a.setWindowIcon(QIcon(":/qv4l2.png"));
        g_mw = new ApplicationWindow();
        g_mw->setWindowTitle("V4L2 Test Bench");
-       g_mw->setDevice(a.argc() > 1 ? a.argv()[1] : "/dev/video0", true);
+       g_mw->setDevice(a.argc() > 1 ? a.argv()[1] : "/dev/video0", false);
        g_mw->show();
        a.connect(&a, SIGNAL(lastWindowClosed()), &a, SLOT(quit()));
        return a.exec();