From 23775810b29213e8bf993074a50a050cc12baecf Mon Sep 17 00:00:00 2001 From: Osenberg Date: Thu, 10 Jan 2019 18:22:16 +0800 Subject: [PATCH] fix(channels.cc): compatible s_color and s --- src/mynteye/device/channel/channels.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/mynteye/device/channel/channels.cc b/src/mynteye/device/channel/channels.cc index 6619cd7..0794aa7 100644 --- a/src/mynteye/device/channel/channels.cc +++ b/src/mynteye/device/channel/channels.cc @@ -758,11 +758,14 @@ std::set ChannelsAdapter::GetResolutionSupports() { std::set res; auto requests_map = stream_requests_map.at(model_); for (auto&& r_map : requests_map) { - if (r_map.first == Capabilities::STEREO || - r_map.first == Capabilities::STEREO_COLOR) { + if (r_map.first == Capabilities::STEREO) { for (auto&& r : r_map.second) { res.insert({r.width, r.height}); } + } else if (r_map.first == Capabilities::STEREO_COLOR) { + for (auto&& r : r_map.second) { + res.insert({static_cast(r.width / 2), r.height}); + } } } return res;