(timestamp): change code before return; issue[EYES-26]

This commit is contained in:
TinyOh 2019-03-06 16:10:08 +08:00
parent c2173f9f8e
commit 3490f0ca44

View File

@ -152,8 +152,6 @@ bool Processor::Process(std::shared_ptr<Object> in) {
std::shared_ptr<Object> Processor::GetOutput() {
std::lock_guard<std::mutex> lk(mtx_result_);
return std::shared_ptr<Object>(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) {