From 21ede42d8d4c66ee4fa71dbee5d81d819b43186e Mon Sep 17 00:00:00 2001 From: Thulinma Date: Sun, 7 Nov 2010 17:38:47 +0100 Subject: [PATCH] Polling poging 2 --- Connector_RTMP/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Connector_RTMP/main.cpp b/Connector_RTMP/main.cpp index c001d0aa..7b0e8aba 100644 --- a/Connector_RTMP/main.cpp +++ b/Connector_RTMP/main.cpp @@ -64,7 +64,7 @@ int main(){ FD_SET(infile, &pollset);//add stdin to polling set select(1, &pollset, 0, 0, &timeout); //only parse input from stdin if available or not yet init'ed - if ((!ready4data || (snd_cnt - snd_window_at >= snd_window_size)) && poll(cinfd, 1, 500)){parseChunk();fflush(stdout);} + if ((!ready4data || (snd_cnt - snd_window_at >= snd_window_size)) && poll(cinfd, 1, (signed int)500)){parseChunk();fflush(stdout);} if (ready4data){ if (!inited){ //we are ready, connect the socket!