From d6c86e2037dae147bb0292b9da109614872a99d7 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sat, 20 Sep 2014 19:18:08 +0200 Subject: Make it possible to disable audio and/or video input. --- src/v4l.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/v4l.cc') 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() -- cgit v1.2.3