diff options
author | Andrey Utkin <andrey.utkin@corp.bluecherry.net> | 2014-10-23 20:55:46 +0400 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2018-08-14 22:30:23 +0300 |
commit | 5d01bd181bb77e6740462095d7be4e0733a59420 (patch) | |
tree | 1ef32db9d5fd38752575f3ad4c9b7b2afae01881 /libavformat | |
parent | 325aa63dd1a3abc2453914d0bc111d297833d725 (diff) | |
download | ffmpeg-5d01bd181bb77e6740462095d7be4e0733a59420.tar.gz |
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: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/http.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/http.c b/libavformat/http.c index 80c87f786a..dfb95642c0 100644 --- a/libavformat/http.c +++ b/libavformat/http.c @@ -248,6 +248,8 @@ fail: if (s->hd) ffurl_close(s->hd); s->hd = NULL; + if (location_changed < 0) + return location_changed; return AVERROR(EIO); } |