From a22eed8c1d7367a27b1457936b741b93d902deec Mon Sep 17 00:00:00 2001 From: TinyOh Date: Wed, 20 Feb 2019 16:12:38 +0800 Subject: [PATCH] fix(windows): ProcessNativeStream change --- src/mynteye/api/synthetic.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/mynteye/api/synthetic.cc b/src/mynteye/api/synthetic.cc index b68cfd4..a73d280 100644 --- a/src/mynteye/api/synthetic.cc +++ b/src/mynteye/api/synthetic.cc @@ -584,10 +584,13 @@ void Synthetic::ProcessNativeStream( const Stream &stream, const api::StreamData &data) { if (stream == Stream::LEFT || stream == Stream::RIGHT) { static api::StreamData left_data, right_data; + cv::Mat tmp1, tmp2; if (stream == Stream::LEFT) { left_data = data; + tmp1 = left_data.frame.clone(); } else if (stream == Stream::RIGHT) { right_data = data; + tmp2 = right_data.frame.clone(); } if (left_data.img && right_data.img && left_data.img->frame_id == right_data.img->frame_id) { @@ -604,8 +607,8 @@ void Synthetic::ProcessNativeStream( processor = find_processor(processor_); } processor->Process(ObjMat2{ - left_data.frame, left_data.frame_id, left_data.img, - right_data.frame, right_data.frame_id, right_data.img}); + tmp1, left_data.frame_id, left_data.img, + tmp2, right_data.frame_id, right_data.img}); } return; }