summaryrefslogtreecommitdiffhomepage
path: root/video-opencv
diff options
context:
space:
mode:
Diffstat (limited to 'video-opencv')
-rw-r--r--video-opencv/impl-metadata.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/video-opencv/impl-metadata.cpp b/video-opencv/impl-metadata.cpp
index 48a2e693..ffc51773 100644
--- a/video-opencv/impl-metadata.cpp
+++ b/video-opencv/impl-metadata.cpp
@@ -17,7 +17,14 @@ std::unique_ptr<camera> metadata::make_camera(const QString& name)
std::vector<QString> metadata::camera_names() const
{
- return get_camera_names();
+ std::vector<std::tuple<QString, int>> names = get_camera_names();
+ std::vector<QString> ret;
+ for (const auto& t : names)
+ {
+ const auto& [str, idx] = t;
+ ret.push_back(str);
+ }
+ return ret;
}
bool metadata::can_show_dialog(const QString& camera_name)