fix(device): fix intrinsic updating bug

This commit is contained in:
kalman 2019-01-12 16:31:23 +08:00
parent 0490c3328a
commit 7746d2b116

View File

@ -642,7 +642,9 @@ void Device::UpdateStreamIntrinsics(
auto &&img_params = params.second; auto &&img_params = params.second;
bool ok = false; bool ok = false;
if (capability == Capabilities::STEREO_COLOR) { if (capability == Capabilities::STEREO_COLOR) {
ok = img_params.ok && img_res.width == request.GetResolution().width / 2; ok = img_params.ok &&
img_res.height == request.GetResolution().height &&
img_res.width == request.GetResolution().width / 2;
} else if (capability == Capabilities::STEREO) { } else if (capability == Capabilities::STEREO) {
ok = img_params.ok && img_res == request.GetResolution(); ok = img_params.ok && img_res == request.GetResolution();
} }