Commit 1e2c2622 authored by Zhao Zhili's avatar Zhao Zhili Committed by Michael Niedermayer

libavformat/network: use defined constant in poll

Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 8fac0d64
......@@ -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);
}
......
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