avformat/http: pass return code from http_open_cnx_internal() on its failure
authorAndrey Utkin <andrey.utkin@corp.bluecherry.net>
Thu, 23 Oct 2014 16:55:46 +0000 (20:55 +0400)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 23 Oct 2014 18:58:21 +0000 (20:58 +0200)
commit70c9d400087c182ce670fcc008b05c2edabd73e9
treeb5177f490ad100fa349a47df34de318361a5344a
parent5ea0753a15367dc0f212e8652fab1d36dd491877
avformat/http: pass return code from http_open_cnx_internal() on its failure

Previously, AVERROR(EIO) was returned on failure of
http_open_cnx_internal(). Now the value is passed to upper level, thus
it is possible to distinguish ECONNREFUSED, ETIMEDOUT, ENETUNREACH etc.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/http.c