summaryrefslogtreecommitdiffhomepage
path: root/video-opencv/video-property-page.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-03-18 18:26:06 +0100
committerStanislaw Halik <sthalik@misaki.pl>2019-03-18 18:26:06 +0100
commit4cbfff8a4a9de868d0d24281acfb661180504e07 (patch)
treea517ce712037a0e131ac66d53dac68462e4d1e85 /video-opencv/video-property-page.cpp
parentec0a37f30b5e5cb6cd4ce4abdb946945e05cd7ce (diff)
video/opencv: fix linux build again
Diffstat (limited to 'video-opencv/video-property-page.cpp')
-rw-r--r--video-opencv/video-property-page.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/video-opencv/video-property-page.cpp b/video-opencv/video-property-page.cpp
index a3fe5004..375518db 100644
--- a/video-opencv/video-property-page.cpp
+++ b/video-opencv/video-property-page.cpp
@@ -147,9 +147,7 @@ bool video_property_page::show(int idx)
bool video_property_page::show(int idx)
{
- const QList<QString> camera_names(get_camera_names());
-
- if (idx >= 0 && idx < camera_names.size())
+ if ((unsigned)idx < get_camera_names().size())
return QProcess::startDetached("qv4l2", QStringList { "-d", QString("/dev/video%1").arg(idx) });
else
return false;