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