summaryrefslogtreecommitdiffhomepage
path: root/cv/video-property-page.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cv/video-property-page.cpp')
-rw-r--r--cv/video-property-page.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cv/video-property-page.cpp b/cv/video-property-page.cpp
index a711e6af..0d2b7458 100644
--- a/cv/video-property-page.cpp
+++ b/cv/video-property-page.cpp
@@ -153,7 +153,7 @@ bool video_property_page::show(int idx)
const QList<QString> camera_names(get_camera_names());
if (idx >= 0 && idx < camera_names.size())
- return QProcess::startDetached("qv4l2", QStringList() << "-d" << camera_names[idx]);
+ return QProcess::startDetached("qv4l2", QStringList { "-d", QString("/dev/video%1").arg(idx) });
else
return false;
}