diff --git a/src/io.cpp b/src/io.cpp index d669de59..e83bb044 100644 --- a/src/io.cpp +++ b/src/io.cpp @@ -253,10 +253,12 @@ namespace Mist { } void negotiationProxy::bufferNext(DTSC::Packet & pack, DTSC::Meta & myMeta) { + static bool multiWrong = false; //Save the trackid of the track for easier access unsigned long tid = pack.getTrackId(); if (pack.getTime() < myMeta.tracks[tid].lastms){ - INFO_MSG("Wrong order packet ignored: %lu < %lu", pack.getTime(), myMeta.tracks[tid].lastms); + DEBUG_MSG(multiWrong?DLVL_HIGH:DLVL_WARN, "Wrong order on track %lu ignored: %lu < %lu", tid, pack.getTime(), myMeta.tracks[tid].lastms); + multiWrong = true; return; } unsigned long mapTid = trackMap[tid]; @@ -265,6 +267,7 @@ namespace Mist { INFO_MSG("Trying to buffer a packet on track %lu~>%lu, but no page is initialized", tid, mapTid); return; } + multiWrong = false; IPC::sharedPage & myPage = curPage[tid]; DTSCPageData & pageData = pagesByTrack[tid][curPageNum[tid]]; //Save the current write position