diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2019-03-18 18:26:06 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2019-03-18 18:26:06 +0100 |
commit | 4cbfff8a4a9de868d0d24281acfb661180504e07 (patch) | |
tree | a517ce712037a0e131ac66d53dac68462e4d1e85 /video-opencv | |
parent | ec0a37f30b5e5cb6cd4ce4abdb946945e05cd7ce (diff) |
video/opencv: fix linux build again
Diffstat (limited to 'video-opencv')
-rw-r--r-- | video-opencv/video-property-page.cpp | 4 |
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; |