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) {