Revision f2c85458 libavformat/network.h

View differences:

libavformat/network.h
78 78
    struct pollfd p = { .fd = fd, .events = ev, .revents = 0 };
79 79
    int ret;
80 80
    ret = poll(&p, 1, 100);
81
    return ret < 0 ? ff_neterrno() : p.revents & ev ? 0 : AVERROR(EAGAIN);
81
    return ret < 0 ? ff_neterrno() : p.revents & (ev | POLLERR | POLLHUP) ? 0 : AVERROR(EAGAIN);
82 82
}
83 83

  
84 84
static inline void ff_network_close(void)

Also available in: Unified diff