Fix voor disconnect probleem in RTMP connector

This commit is contained in:
Thulinma 2010-11-04 23:28:24 +01:00
parent ceeef9b29e
commit cde417a7b6
2 changed files with 5 additions and 1 deletions

View file

@ -53,7 +53,7 @@ int main(){
#ifdef DEBUG
fprintf(stderr, "Starting processing...\n");
#endif
while (!feof(stdin) && std::cout.good()){
while (std::cin.good() && std::cout.good()){
//select(1, &pollset, 0, 0, &timeout);
//only parse input from stdin if available or not yet init'ed
//FD_ISSET(0, &pollset) || //NOTE: Polling does not work? WHY?!? WHY DAMN IT?!?