]> git.vomp.tv Git - vompserver.git/commitdiff
Streaming update
authorChris Tallon <chris@vomp.tv>
Sun, 25 Nov 2007 13:43:25 +0000 (13:43 +0000)
committerChris Tallon <chris@vomp.tv>
Sun, 25 Nov 2007 13:43:25 +0000 (13:43 +0000)
mvpreceiver.c

index ae8c01b5344620421ce6bf1f1abe8b2350efa269..3f68ec55b4f46395e9bdc9cbe8f40e2a1b58a662 100755 (executable)
@@ -112,7 +112,7 @@ void MVPReceiver::threadMethod()
       *(ULONG*)&buffer[4] = htonl(streamID);
       *(ULONG*)&buffer[8] = htonl(amountReceived);
       tcp->sendPacket(buffer, amountReceived + 12);
-    } while(processed.getContent());
+    } while(processed.getContent() >= streamChunkSize);
   }  
 }