diff options
author | Mike Melanson <mike@multimedia.cx> | 2004-06-19 03:59:34 +0000 |
---|---|---|
committer | Mike Melanson <mike@multimedia.cx> | 2004-06-19 03:59:34 +0000 |
commit | 0bd586c50dc27ec38ca94e58f50030544d729463 (patch) | |
tree | daa391f5efede8e58b88431b9b453dcbd1e6c2e0 /libavformat/http.c | |
parent | cbf5374fc0f733cefe304fd4d11c7b0fa21fba61 (diff) | |
download | ffmpeg-0bd586c50dc27ec38ca94e58f50030544d729463.tar.gz |
sweeping change from -EIO -> AVERROR_IO
Originally committed as revision 3239 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/http.c')
-rw-r--r-- | libavformat/http.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavformat/http.c b/libavformat/http.c index 6ae9d72a8e..6800370549 100644 --- a/libavformat/http.c +++ b/libavformat/http.c @@ -116,7 +116,7 @@ static int http_open(URLContext *h, const char *uri, int flags) if (hd) url_close(hd); av_free(s); - return -EIO; + return AVERROR_IO; } static int http_getc(HTTPContext *s) @@ -125,7 +125,7 @@ static int http_getc(HTTPContext *s) if (s->buf_ptr >= s->buf_end) { len = url_read(s->hd, s->buffer, BUFFER_SIZE); if (len < 0) { - return -EIO; + return AVERROR_IO; } else if (len == 0) { return -1; } else { @@ -194,7 +194,7 @@ static int http_connect(URLContext *h, const char *path, const char *hoststr) hoststr); if (http_write(h, s->buffer, strlen(s->buffer)) < 0) - return -EIO; + return AVERROR_IO; /* init input buffer */ s->buf_ptr = s->buffer; @@ -211,7 +211,7 @@ static int http_connect(URLContext *h, const char *path, const char *hoststr) for(;;) { ch = http_getc(s); if (ch < 0) - return -EIO; + return AVERROR_IO; if (ch == '\n') { /* process line */ if (q > line && q[-1] == '\r') |