Commit e8d658df authored by Luca Abeni's avatar Luca Abeni

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
parent 7e665cd3
...@@ -594,7 +594,7 @@ static int http_server(void) ...@@ -594,7 +594,7 @@ static int http_server(void)
ret = poll(poll_table, poll_entry - poll_table, delay); ret = poll(poll_table, poll_entry - poll_table, delay);
if (ret < 0 && errno != EAGAIN && errno != EINTR) if (ret < 0 && errno != EAGAIN && errno != EINTR)
return -1; return -1;
} while (ret <= 0); } while (ret < 0);
cur_time = av_gettime() / 1000; cur_time = av_gettime() / 1000;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment