From 47fb693b616c9e01df323e3b848eadf5f03c92d1 Mon Sep 17 00:00:00 2001 From: TinyOh Date: Wed, 16 Jan 2019 11:49:50 +0800 Subject: [PATCH] fix(disable order): fix disable order DISPARITY before RECTIFIED --- src/mynteye/api/synthetic.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/mynteye/api/synthetic.cc b/src/mynteye/api/synthetic.cc index e1329d0..54963d3 100644 --- a/src/mynteye/api/synthetic.cc +++ b/src/mynteye/api/synthetic.cc @@ -496,12 +496,12 @@ void Synthetic::DisableStreamData(const Stream &stream, std::uint32_t depth) { stream_enabled_mode_.erase(stream); switch (stream) { case Stream::LEFT_RECTIFIED: { - if (IsStreamEnabledSynthetic(Stream::RIGHT_RECTIFIED)) { - DisableStreamData(Stream::RIGHT_RECTIFIED, depth + 1); - } if (IsStreamEnabledSynthetic(Stream::DISPARITY)) { DisableStreamData(Stream::DISPARITY, depth + 1); } + if (IsStreamEnabledSynthetic(Stream::RIGHT_RECTIFIED)) { + DisableStreamData(Stream::RIGHT_RECTIFIED, depth + 1); + } if (calib_model_ == CalibrationModel::PINHOLE) { DeactivateProcessor(); #ifdef WITH_CAM_MODELS @@ -515,12 +515,12 @@ void Synthetic::DisableStreamData(const Stream &stream, std::uint32_t depth) { } } break; case Stream::RIGHT_RECTIFIED: { - if (IsStreamEnabledSynthetic(Stream::LEFT_RECTIFIED)) { - DisableStreamData(Stream::LEFT_RECTIFIED, depth + 1); - } if (IsStreamEnabledSynthetic(Stream::DISPARITY)) { DisableStreamData(Stream::DISPARITY, depth + 1); } + if (IsStreamEnabledSynthetic(Stream::LEFT_RECTIFIED)) { + DisableStreamData(Stream::LEFT_RECTIFIED, depth + 1); + } if (calib_model_ == CalibrationModel::PINHOLE) { DeactivateProcessor(); #ifdef WITH_CAM_MODELS