You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
libavformat/network: use defined constant in poll
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
committed by
Michael Niedermayer
parent
8fac0d6403
commit
1e2c262212
@@ -75,7 +75,7 @@ int ff_network_wait_fd(int fd, int write)
|
|||||||
int ev = write ? POLLOUT : POLLIN;
|
int ev = write ? POLLOUT : POLLIN;
|
||||||
struct pollfd p = { .fd = fd, .events = ev, .revents = 0 };
|
struct pollfd p = { .fd = fd, .events = ev, .revents = 0 };
|
||||||
int ret;
|
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);
|
return ret < 0 ? ff_neterrno() : p.revents & (ev | POLLERR | POLLHUP) ? 0 : AVERROR(EAGAIN);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user