Merge branch 'development' into LTS_development

# Conflicts:
#	src/input/input_buffer.cpp
This commit is contained in:
Thulinma 2015-11-27 10:44:09 +01:00
commit 9e1f0fcb7d
2 changed files with 4 additions and 4 deletions

View file

@ -138,7 +138,7 @@ namespace Mist {
if (it->second.firstms < firstms){ if (it->second.firstms < firstms){
firstms = it->second.firstms; firstms = it->second.firstms;
} }
if (it->second.firstms > lastms){ if (it->second.lastms > lastms){
lastms = it->second.lastms; lastms = it->second.lastms;
} }
} }

View file

@ -401,7 +401,7 @@ namespace Mist {
bool Output::seek(unsigned int tid, unsigned long long pos, bool getNextKey){ bool Output::seek(unsigned int tid, unsigned long long pos, bool getNextKey){
loadPageForKey(tid, getKeyForTime(tid, pos) + (getNextKey?1:0)); loadPageForKey(tid, getKeyForTime(tid, pos) + (getNextKey?1:0));
if (!curPage.count(tid) || !curPage[tid].mapped){ if (!curPage.count(tid) || !curPage[tid].mapped){
DEBUG_MSG(DLVL_DEVEL, "Aborting seek to %llums in track %u, not available.", pos, tid); INFO_MSG("Aborting seek to %llums in track %u, not available.", pos, tid);
return false; return false;
} }
sortedPageInfo tmp; sortedPageInfo tmp;
@ -424,13 +424,13 @@ namespace Mist {
if (curPage[tid].mapped[tmp.offset] != 0){ if (curPage[tid].mapped[tmp.offset] != 0){
DEBUG_MSG(DLVL_FAIL, "Noes! Couldn't find packet on track %d because of some kind of corruption error or somesuch.", tid); DEBUG_MSG(DLVL_FAIL, "Noes! Couldn't find packet on track %d because of some kind of corruption error or somesuch.", tid);
}else{ }else{
DEBUG_MSG(DLVL_FAIL, "Track %d no data (key %u @ %u) - waiting...", tid, getKeyForTime(tid, pos) + (getNextKey?1:0), tmp.offset); VERYHIGH_MSG("Track %d no data (key %u @ %u) - waiting...", tid, getKeyForTime(tid, pos) + (getNextKey?1:0), tmp.offset);
unsigned int i = 0; unsigned int i = 0;
while (curPage[tid].mapped[tmp.offset] == 0 && ++i < 42){ while (curPage[tid].mapped[tmp.offset] == 0 && ++i < 42){
Util::wait(100); Util::wait(100);
} }
if (curPage[tid].mapped[tmp.offset] == 0){ if (curPage[tid].mapped[tmp.offset] == 0){
DEBUG_MSG(DLVL_FAIL, "Track %d no data (key %u) - timeout", tid, getKeyForTime(tid, pos) + (getNextKey?1:0)); FAIL_MSG("Track %d no data (key %u) - timeout", tid, getKeyForTime(tid, pos) + (getNextKey?1:0));
}else{ }else{
return seek(tid, pos, getNextKey); return seek(tid, pos, getNextKey);
} }