summaryrefslogtreecommitdiff
path: root/src/v4l.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2014-09-20 19:18:08 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2014-09-20 19:18:08 +0200
commitd6c86e2037dae147bb0292b9da109614872a99d7 (patch)
treeedf300527792e5b47f5103f0dd487efd6d5031f0 /src/v4l.cc
parentb6e930afb15717e144ec5f526bce88a32f9ab9e5 (diff)
Make it possible to disable audio and/or video input.
Diffstat (limited to 'src/v4l.cc')
-rw-r--r--src/v4l.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/v4l.cc b/src/v4l.cc
index 246026f..bd193f4 100644
--- a/src/v4l.cc
+++ b/src/v4l.cc
@@ -791,7 +791,9 @@ V4L::V4L(QString device)
v4l = this; // Set global V4L object pointer.
running = true;
- start();
+
+ // Only start if we actually have a video interface.
+ if(device != "") start();
}
V4L::~V4L()