mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-29 22:00:58 +02:00
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>
This commit is contained in:
parent
325aa63dd1
commit
5d01bd181b
@ -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…
x
Reference in New Issue
Block a user