From 3490f0ca44e948a2f18a48cd3fac8c10ed5eaa89 Mon Sep 17 00:00:00 2001 From: TinyOh Date: Wed, 6 Mar 2019 16:10:08 +0800 Subject: [PATCH] (timestamp): change code before return; issue[EYES-26] --- src/mynteye/api/processor.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mynteye/api/processor.cc b/src/mynteye/api/processor.cc index 7559dc6..6e3620c 100644 --- a/src/mynteye/api/processor.cc +++ b/src/mynteye/api/processor.cc @@ -152,8 +152,6 @@ bool Processor::Process(std::shared_ptr in) { std::shared_ptr Processor::GetOutput() { std::lock_guard lk(mtx_result_); return std::shared_ptr(std::move(output_result_)); - // to make sure that one frame can just be get once! - output_result_ = nullptr; } std::uint64_t Processor::GetDroppedCount() { @@ -267,6 +265,8 @@ Processor::process_type Processor::ProcessInputConnection() { api::StreamData Processor::GetStreamData(const Stream &stream) { auto sum = getStreamsSum(); auto &&out = GetOutput(); + // to make sure that one frame can just be get once! + output_result_ = nullptr; Synthetic::Mode enable_mode = Synthetic::MODE_OFF; auto streams = getTargetStreams(); for (auto it_s : streams) {