Skip to content
Snippets Groups Projects
Commit da6bac95 authored by Joan Solà Ortega's avatar Joan Solà Ortega
Browse files

Add a forgotten removeUpTo()

parent 753c1b7c
No related branches found
No related tags found
1 merge request!157Kfpackmanager
...@@ -51,6 +51,7 @@ void ProcessorTracker::process(CaptureBasePtr const _incoming_ptr) ...@@ -51,6 +51,7 @@ void ProcessorTracker::process(CaptureBasePtr const _incoming_ptr)
case FIRST_TIME_WITH_PACK : case FIRST_TIME_WITH_PACK :
{ {
KFPackPtr pack = selectPack( incoming_ptr_); KFPackPtr pack = selectPack( incoming_ptr_);
kf_pack_buffer_.removeUpTo( incoming_ptr_->getTimeStamp() );
WOLF_DEBUG( "PT: KF" , pack->key_frame->id() , " callback received at ts= " , pack->key_frame->getTimeStamp().get() ); WOLF_DEBUG( "PT: KF" , pack->key_frame->id() , " callback received at ts= " , pack->key_frame->getTimeStamp().get() );
...@@ -172,6 +173,7 @@ void ProcessorTracker::process(CaptureBasePtr const _incoming_ptr) ...@@ -172,6 +173,7 @@ void ProcessorTracker::process(CaptureBasePtr const _incoming_ptr)
origin_ptr_ = last_ptr_; origin_ptr_ = last_ptr_;
last_ptr_ = incoming_ptr_; last_ptr_ = incoming_ptr_;
incoming_ptr_ = nullptr; incoming_ptr_ = nullptr;
} }
else else
{ {
......
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