summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-05-26 21:15:28 +0200
committerStanislaw Halik <sthalik@misaki.pl>2018-05-26 21:15:28 +0200
commit1fb5c05624152a4e082b1cb167c3a8418486a864 (patch)
treeaf74d8e46a97f08a21cab5e7d007ae7ef5087877
parentbc5bb6a220d976d2fb0440adafd60fe558d6d130 (diff)
cv/video-property-page: fix qv4l2 invocation for Linux #726
Submitted-by: Artem Sobolev
-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;
}