Mercurial > libavformat.hg
diff rtsp.c @ 2274:b21c2af60bc9 libavformat
Replace all occurrences of AVERROR_IO with AVERROR(EIO).
author | takis |
---|---|
date | Thu, 19 Jul 2007 15:23:32 +0000 |
parents | 7eb456c4ed8a |
children | a32ac90d5d67 |
line wrap: on
line diff
--- a/rtsp.c Thu Jul 19 15:21:30 2007 +0000 +++ b/rtsp.c Thu Jul 19 15:23:32 2007 +0000 @@ -886,7 +886,7 @@ /* open the tcp connexion */ snprintf(tcpname, sizeof(tcpname), "tcp://%s:%d", host, port); if (url_open(&rtsp_hd, tcpname, URL_RDWR) < 0) - return AVERROR_IO; + return AVERROR(EIO); rt->rtsp_hd = rtsp_hd; rt->seq = 0; @@ -1199,7 +1199,7 @@ break; } if (len < 0) - return AVERROR_IO; + return AVERROR(EIO); ret = rtp_parse_packet(rtsp_st->rtp_ctx, pkt, buf, len); if (ret < 0) goto redo; @@ -1473,7 +1473,7 @@ } *ic_ptr = ic; if (!ic) - return AVERROR_IO; + return AVERROR(EIO); else return 0; }