]> git.sesse.net Git - ffmpeg/commit
avformat/libsrt: fix checking connection result in non-blocking mode
authorMarton Balint <cus@passwd.hu>
Thu, 13 Feb 2020 22:58:45 +0000 (23:58 +0100)
committerMarton Balint <cus@passwd.hu>
Sun, 23 Feb 2020 23:02:45 +0000 (00:02 +0100)
commitaab9133d919bec4af54a06216d8629ebe4fb8f74
tree4f4f1f161a2f812d75b2e5443402b501635e8f0b
parent006744bdbd83d98bc71cb041d9551bf6a64b45a2
avformat/libsrt: fix checking connection result in non-blocking mode

After f8990c5f414d4575415e2a3981c3b142222ca3d4 we properly set non-blocking
mode which makes the connect() call return always 0 even if no connection can
be established.

Fix this by always doing a poll after calling connect(). Also there was some
leftover copy paste code which checks for various errors which are simply not
possible with SRT.

Signed-off-by: Marton Balint <cus@passwd.hu>
libavformat/libsrt.c