libavformat/tcp: fix return code for tcp_accept
authorSimon Thelen <ffmpeg-dev@c-14.de>
Sat, 8 Apr 2017 12:21:28 +0000 (14:21 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 10 May 2017 12:00:20 +0000 (14:00 +0200)
commit54b6bef6e13adf377c78c28ede22a4322ab28865
tree67dbba31930d3f7dfa0d1cfe280871b8ba7e196a
parent014d47ed74c43918430282d7cb2bf45dab3e14b7
libavformat/tcp: fix return code for tcp_accept

ff_accept can return AVERROR(ETIMEDOUT) and errno will be 0 (or
undefined), return ret instead and return ff_neterror() in
ff_poll_interrupt instead of AVERROR(errno) to parse WSAGetLastError on
Windows.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/network.c
libavformat/tcp.c