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
This commit is contained in:
Luca Abeni 2007-04-10 14:40:03 +00:00
parent 7e665cd3ff
commit e8d658df34
1 changed files with 1 additions and 1 deletions

View 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;