diff --git a/src/player.cpp b/src/player.cpp index 3281b002..b8c9adf5 100644 --- a/src/player.cpp +++ b/src/player.cpp @@ -1,10 +1,7 @@ /// \file player.cpp /// Holds all code for the MistPlayer application used for VoD streams. -#if DEBUG >= 4 #include //for std::cerr -#endif - #include //for fileno #include //for atoi #include @@ -89,7 +86,7 @@ int main(int argc, char** argv){ long long now, timeDiff = 0, lastTime = 0; Stats sts; - while (in_out.connected()){ + while (in_out.connected() && std::cin.good() && std::cout.good()){ if (in_out.spool()){ while (in_out.Received().find('\n') != std::string::npos){ std::string cmd = in_out.Received().substr(0, in_out.Received().find('\n'));