summaryrefslogtreecommitdiff
path: root/src/cam/stream_options.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cam/stream_options.cpp')
-rw-r--r--src/cam/stream_options.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cam/stream_options.cpp b/src/cam/stream_options.cpp
index c58272c2..b90dbb97 100644
--- a/src/cam/stream_options.cpp
+++ b/src/cam/stream_options.cpp
@@ -48,11 +48,10 @@ StreamRoles StreamKeyValueParser::roles(const OptionValue &values)
StreamRoles roles;
for (auto const &value : streamParameters) {
- KeyValueParser::Options opts = value.toKeyValues();
StreamRole role;
/* If role is invalid or not set default to viewfinder. */
- if (!parseRole(&role, value))
+ if (!parseRole(&role, value.toKeyValues()))
role = StreamRole::Viewfinder;
roles.push_back(role);