Skip to content
Snippets Groups Projects
Commit 10ef25c4 authored by Médéric Fourmy's avatar Médéric Fourmy
Browse files

Changing the order between process and store capture in processorBase

parent 0a4dbf5e
No related branches found
No related tags found
1 merge request!339Adapting to multiple processor motion 285
Pipeline #4949 failed
......@@ -52,12 +52,13 @@ void ProcessorBase::captureCallback(CaptureBasePtr _capture_ptr)
assert(_capture_ptr != nullptr && "captureCallback with a nullptr capture");
WOLF_DEBUG("P", isMotion() ? "M " : "T ", getName(), ": Capture ", _capture_ptr->id(), " callback received with ts = ", _capture_ptr->getTimeStamp());
// if trigger, process directly without buffering
if (triggerInCapture(_capture_ptr))
processCapture(_capture_ptr);
// asking if capture should be stored
if (storeCapture(_capture_ptr))
buffer_capture_.add(_capture_ptr->getTimeStamp(), _capture_ptr);
// if trigger, process directly without buffering
if (triggerInCapture(_capture_ptr))
processCapture(_capture_ptr);
}
void ProcessorBase::remove()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment