summaryrefslogtreecommitdiff
path: root/src/v4l.cc
diff options
context:
space:
mode:
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()