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

@ -492,5 +492,9 @@ chunkpack getWholeChunk(){
free(ret);//cleanup returned chunk free(ret);//cleanup returned chunk
return gwc_complete; return gwc_complete;
} }
if (!std::cout.good()){
gwc_complete.msg_type_id = 0;
return gwc_complete;
}
} }
}//getWholeChunk }//getWholeChunk

View file

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