summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorZhao Zhili <wantlamy@gmail.com>2016-01-27 11:00:17 +0800
committerMichael Niedermayer <michael@niedermayer.cc>2016-01-29 21:31:47 +0100
commit1e2c2622120cd4dfb2a2cf32ee957807cee1e3f3 (patch)
tree05ad241efc38212a9265104e0286c13b031ccc51 /libavformat
parent8fac0d640341f1b26fed8c9af4c31cb9485d5fd5 (diff)
libavformat/network: use defined constant in poll
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/network.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/network.c b/libavformat/network.c
index 7a326d2c4e..2fb1c8b02a 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);
}