Skip to content
Snippets Groups Projects
Commit 1deec973 authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Actually drop old chunks

parent d7f095e5
No related branches found
No related tags found
No related merge requests found
Pipeline #12293 passed
...@@ -142,6 +142,8 @@ void NetSource::_recvChunk(int64_t frame, int chunk, bool delta, const vector<un ...@@ -142,6 +142,8 @@ void NetSource::_recvChunk(int64_t frame, int chunk, bool delta, const vector<un
current_frame_ = frame; current_frame_ = frame;
} else if (frame < current_frame_) { } else if (frame < current_frame_) {
LOG(WARNING) << "Chunk dropped"; LOG(WARNING) << "Chunk dropped";
if (chunk == 0) N_--;
return;
} }
// TODO:(Nick) Decode directly into double buffer if no scaling // TODO:(Nick) Decode directly into double buffer if no scaling
......
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