[FFmpeg-cvslog] libavformat/network: use defined constant in poll

Zhao Zhili git at videolan.org
Fri Jan 29 21:32:33 CET 2016


ffmpeg | branch: master | Zhao Zhili <wantlamy at gmail.com> | Wed Jan 27 11:00:17 2016 +0800| [1e2c2622120cd4dfb2a2cf32ee957807cee1e3f3] | committer: Michael Niedermayer

libavformat/network: use defined constant in poll

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1e2c2622120cd4dfb2a2cf32ee957807cee1e3f3
---

 libavformat/network.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/network.c b/libavformat/network.c
index 7a326d2..2fb1c8b 100644
--- a/libavformat/network.c
+++ b/libavformat/network.c
@@ -75,7 +75,7 @@ int ff_network_wait_fd(int fd, int write)
     int ev = write ? POLLOUT : POLLIN;
     struct pollfd p = { .fd = fd, .events = ev, .revents = 0 };
     int ret;
-    ret = poll(&p, 1, 100);
+    ret = poll(&p, 1, POLLING_TIME);
     return ret < 0 ? ff_neterrno() : p.revents & (ev | POLLERR | POLLHUP) ? 0 : AVERROR(EAGAIN);
 }
 



More information about the ffmpeg-cvslog mailing list