Fix the poll() loop (ret == 0 means that a timeout expired, so it must be
authorLuca Abeni <lucabe72@email.it>
Tue, 10 Apr 2007 14:40:03 +0000 (14:40 +0000)
committerLuca Abeni <lucabe72@email.it>
Tue, 10 Apr 2007 14:40:03 +0000 (14:40 +0000)
handled)

Originally committed as revision 8711 to svn://svn.ffmpeg.org/ffmpeg/trunk

ffserver.c

index 603227d..040c5f8 100644 (file)
@@ -594,7 +594,7 @@ static int http_server(void)
             ret = poll(poll_table, poll_entry - poll_table, delay);
             if (ret < 0 && errno != EAGAIN && errno != EINTR)
                 return -1;
-        } while (ret <= 0);
+        } while (ret < 0);
 
         cur_time = av_gettime() / 1000;