From 39a61b63809a0737098a8d26f390368e5c010f41 Mon Sep 17 00:00:00 2001 From: Erik Zandvliet Date: Fri, 13 May 2016 11:55:07 +0200 Subject: [PATCH] Negotiation Speedups --- src/io.cpp | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/io.cpp b/src/io.cpp index 8da2ef71..c6e42a71 100644 --- a/src/io.cpp +++ b/src/io.cpp @@ -475,24 +475,6 @@ namespace Mist { INFO_MSG("Track %lu Declined", tid); return; } - //Check if a different track is already accepted - bool shouldBlock = true; - if (pagesByTrack.count(tid) && pagesByTrack[tid].size()) { - for (std::map::iterator it = trackState.begin(); it != trackState.end(); it++) { - if (it->second == FILL_ACC) { - //If so, we do not block here - shouldBlock = false; - } - } - } - //Block if no tracks are accepted yet, until we have a definite state - if (shouldBlock) { - while (trackState[tid] != FILL_DEC && trackState[tid] != FILL_ACC) { - INFO_MSG("Blocking on track %lu", tid); - continueNegotiate(tid, myMeta); - Util::sleep(500); - } - } //This update needs to happen whether the track is accepted or not. ///\todo Figure out how to act with declined track here bool isKeyframe = false;