Skip to content
Snippets Groups Projects
Commit 945d4509 authored by Joan Vallvé Navarro's avatar Joan Vallvé Navarro
Browse files

Merge branch 'feature/processor_tracker_bug_fix' into 'devel'

Small bug while calling removeUpTo in process()

See merge request !254
parents e8c1be3e f9ebe405
No related branches found
No related tags found
1 merge request!254Small bug while calling removeUpTo in process()
Pipeline #2728 passed
......@@ -53,7 +53,7 @@ void ProcessorTracker::process(CaptureBasePtr const _incoming_ptr)
case FIRST_TIME_WITH_PACK :
{
PackKeyFramePtr pack = kf_pack_buffer_.selectPack( incoming_ptr_, params_tracker_->time_tolerance);
kf_pack_buffer_.removeUpTo( incoming_ptr_->getTimeStamp() );
kf_pack_buffer_.removeUpTo( pack->key_frame->getTimeStamp() );
WOLF_DEBUG( "PT ", getName(), ": KF" , pack->key_frame->id() , " callback unpacked with ts= " , pack->key_frame->getTimeStamp().get() );
......@@ -124,7 +124,7 @@ void ProcessorTracker::process(CaptureBasePtr const _incoming_ptr)
case RUNNING_WITH_PACK :
{
PackKeyFramePtr pack = kf_pack_buffer_.selectPack( last_ptr_ , params_tracker_->time_tolerance);
kf_pack_buffer_.removeUpTo( last_ptr_->getTimeStamp() );
kf_pack_buffer_.removeUpTo( pack->key_frame->getTimeStamp() );
WOLF_DEBUG( "PT ", getName(), ": KF" , pack->key_frame->id() , " callback unpacked with ts= " , pack->key_frame->getTimeStamp().get() );
......
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