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/udp.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/udp.c')
-rw-r--r-- | libavformat/udp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavformat/udp.c b/libavformat/udp.c index c8d7379ba6..87805c1519 100644 --- a/libavformat/udp.c +++ b/libavformat/udp.c @@ -64,7 +64,7 @@ int udp_set_remote_url(URLContext *h, const char *uri) /* set the destination address */ if (resolve_host(&s->dest_addr.sin_addr, hostname) < 0) - return -EIO; + return AVERROR_IO; s->dest_addr.sin_family = AF_INET; s->dest_addr.sin_port = htons(port); return 0; @@ -206,7 +206,7 @@ static int udp_open(URLContext *h, const char *uri, int flags) close(udp_fd); #endif av_free(s); - return -EIO; + return AVERROR_IO; } static int udp_read(URLContext *h, uint8_t *buf, int size) @@ -221,7 +221,7 @@ static int udp_read(URLContext *h, uint8_t *buf, int size) (struct sockaddr *)&from, &from_len); if (len < 0) { if (errno != EAGAIN && errno != EINTR) - return -EIO; + return AVERROR_IO; } else { break; } @@ -240,7 +240,7 @@ static int udp_write(URLContext *h, uint8_t *buf, int size) sizeof (s->dest_addr)); if (ret < 0) { if (errno != EINTR && errno != EAGAIN) - return -EIO; + return AVERROR_IO; } else { break; } |