aboutsummaryrefslogtreecommitdiffstats
path: root/ffserver.c
diff options
context:
space:
mode:
authorLuca Abeni <lucabe72@email.it>2007-04-10 14:40:03 +0000
committerLuca Abeni <lucabe72@email.it>2007-04-10 14:40:03 +0000
commite8d658df344553170cc1302438a8e70d97b52169 (patch)
treea2d5c1d9baf65c725b21a0047ed3e02f43392243 /ffserver.c
parent7e665cd3ff1c8843f6be922dce0d610404215f09 (diff)
downloadffmpeg-e8d658df344553170cc1302438a8e70d97b52169.tar.gz
Fix the poll() loop (ret == 0 means that a timeout expired, so it must be
handled) Originally committed as revision 8711 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffserver.c')
-rw-r--r--ffserver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffserver.c b/ffserver.c
index 603227db5d..040c5f8d24 100644
--- a/ffserver.c
+++ b/ffserver.c
@@ -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;