Skip to content
Snippets Groups Projects
Commit bf668bb7 authored by Joaquim Casals Buñuel's avatar Joaquim Casals Buñuel
Browse files

Add capture type check for core processors

parent 85204425
No related branches found
No related tags found
No related merge requests found
Pipeline #5262 failed
...@@ -90,7 +90,8 @@ void ProcessorMotion::processCapture(CaptureBasePtr _incoming_ptr) ...@@ -90,7 +90,8 @@ void ProcessorMotion::processCapture(CaptureBasePtr _incoming_ptr)
return; return;
} }
incoming_ptr_ = std::static_pointer_cast<CaptureMotion>(_incoming_ptr); incoming_ptr_ = std::dynamic_pointer_cast<CaptureMotion>(_incoming_ptr);
assert(incoming_ptr_ != nullptr && ("Capture type mismatch. Processor " + getName() + " can only process captures of type CaptureMotion").c_str());
preProcess(); // Derived class operations preProcess(); // Derived class operations
......
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