This commit is contained in:
Thulinma 2010-11-08 21:36:14 +01:00
parent 2f23d1abe9
commit 644bda4e0d

View file

@ -34,6 +34,7 @@ bool FLV_Isheader(char * header){
bool ReadUntil(char * buffer, unsigned int count, unsigned int & sofar, int sock){ bool ReadUntil(char * buffer, unsigned int count, unsigned int & sofar, int sock){
if (sofar >= count){return true;} if (sofar >= count){return true;}
bool r = DDV_read(buffer + sofar,count-sofar,sock); bool r = DDV_read(buffer + sofar,count-sofar,sock);
sofar = count;
fprintf(stderr, "Reading %i/%i\n", sofar, count); fprintf(stderr, "Reading %i/%i\n", sofar, count);
if (!r){ if (!r){
All_Hell_Broke_Loose = true; All_Hell_Broke_Loose = true;