summaryrefslogtreecommitdiff
path: root/libavdevice/vfwcap.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2010-03-13 19:19:44 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2010-03-13 19:19:44 +0000
commit5ae092ee34bd8a174306abdd5cd8bf6eea4a2f8e (patch)
tree3934504fcfafd53f9c045fc0cf5b710bb8ee63f9 /libavdevice/vfwcap.c
parent0edfa79b23163be51d3ee1678f5ff87b5207f636 (diff)
Replace all the occurrences of AVERROR_EIO with AVERROR(EIO), and mark
AVERROR_EIO for deletion at the next major bump. Originally committed as revision 22513 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavdevice/vfwcap.c')
-rw-r--r--libavdevice/vfwcap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavdevice/vfwcap.c b/libavdevice/vfwcap.c
index 91714571cd..3aaa5db524 100644
--- a/libavdevice/vfwcap.c
+++ b/libavdevice/vfwcap.c
@@ -240,7 +240,7 @@ static int vfw_read_header(AVFormatContext *s, AVFormatParameters *ap)
if(!ap->time_base.den) {
av_log(s, AV_LOG_ERROR, "A time base must be specified.\n");
- return AVERROR_IO;
+ return AVERROR(EIO);
}
ctx->s = s;
@@ -248,7 +248,7 @@ static int vfw_read_header(AVFormatContext *s, AVFormatParameters *ap)
ctx->hwnd = capCreateCaptureWindow(NULL, 0, 0, 0, 0, 0, HWND_MESSAGE, 0);
if(!ctx->hwnd) {
av_log(s, AV_LOG_ERROR, "Could not create capture window.\n");
- return AVERROR_IO;
+ return AVERROR(EIO);
}
/* If atoi fails, devnum==0 and the default device is used */
@@ -390,7 +390,7 @@ fail_bi:
fail_io:
vfw_read_close(s);
- return AVERROR_IO;
+ return AVERROR(EIO);
}
static int vfw_read_packet(AVFormatContext *s, AVPacket *pkt)