Removed some debug message warnings.

This commit is contained in:
Thulinma 2014-02-10 01:00:54 +01:00
parent 683e2c6190
commit a134e7b711
2 changed files with 15 additions and 4 deletions

View file

@ -117,7 +117,9 @@ int main(int argc, char** argv){
bool meta_sent = false;
int playUntil = -1;
long long now, prevTimestamp = 0; //for timing of sending packets
#if DEBUG >= DLVL_DEVEL
long long bench = 0; //for benchmarking
#endif
std::set<int> newSelect;
Stats sts;
CYG_DEFI
@ -187,7 +189,9 @@ int main(int argc, char** argv){
if (in_out.Received().get().size() >= 2){
playUntil = atoi(in_out.Received().get().substr(2).c_str());
prevTimestamp = 0;
#if DEBUG >= DLVL_DEVEL
bench = Util::getMS();
#endif
}else{
playUntil = 0;
}
@ -199,7 +203,9 @@ int main(int argc, char** argv){
}
++playing;
in_out.setBlocking(false);
#if DEBUG >= DLVL_DEVEL
bench = Util::getMS();
#endif
break;
}
case 'q': { //quit-playing
@ -251,7 +257,9 @@ int main(int argc, char** argv){
playing = 0;
}
if (playing == 0){
#if DEBUG >= DLVL_DEVEL
DEBUG_MSG(DLVL_DEVEL, "Completed VoD request in MistPlayer (%d ms)", (Util::getMS() - bench));
#endif
pausemark["time"] = source.getJSON()["time"];
pausemark.sendTo(in_out);
in_out.setBlocking(true);

View file

@ -634,8 +634,11 @@ namespace Connector_HTTP {
DEBUG_MSG(DLVL_HIGH, "Received request: %s (%d) => %s (%s)", Client.getUrl().c_str(), conn.getSocket(), handler.c_str(), Client.GetVar("stream").c_str());
#if DEBUG >= DLVL_HIGH
long long int startms = Util::getMS();
#endif
long long int midms = 0;
#define MID_BENCH midms =
#else
#define MID_BENCH
#endif
bool closeConnection = false;
if (Client.GetHeader("Connection") == "close"){
closeConnection = true;
@ -643,12 +646,12 @@ namespace Connector_HTTP {
if (handler == "none" || handler == "internal"){
if (handler == "internal"){
midms = proxyHandleInternal(Client, conn);
MID_BENCH proxyHandleInternal(Client, conn);
}else{
midms = proxyHandleUnsupported(Client, conn);
MID_BENCH proxyHandleUnsupported(Client, conn);
}
}else{
midms = proxyHandleThroughConnector(Client, conn, handler);
MID_BENCH proxyHandleThroughConnector(Client, conn, handler);
}
#if DEBUG >= DLVL_HIGH
long long int nowms = Util::getMS();