Browse Source

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>
tags/n4.1
Andrey Utkin Martin Storsjö 11 years ago
parent
commit
5d01bd181b
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavformat/http.c

+ 2
- 0
libavformat/http.c View File

@@ -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);
}



Loading…
Cancel
Save