summaryrefslogtreecommitdiff
path: root/libavformat/wtv.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-03-14 20:38:55 +0100
committerRonald S. Bultje <rsbultje@gmail.com>2011-03-15 08:04:28 -0400
commit3e68b3ba7b015cf2154ad2023781eedd47f0f4bb (patch)
treee8bb2171e7b2131883024b901941343998b84c07 /libavformat/wtv.c
parent75b9ed04b977bfd467816f7e60c6511ef89b8a2b (diff)
avio: deprecate url_ferror
AVIOContext.error should be used directly instead. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Diffstat (limited to 'libavformat/wtv.c')
-rw-r--r--libavformat/wtv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/wtv.c b/libavformat/wtv.c
index 2b3737bc84..191c1c1d67 100644
--- a/libavformat/wtv.c
+++ b/libavformat/wtv.c
@@ -77,7 +77,7 @@ static int wtvfile_read_packet(void *opaque, uint8_t *buf, int buf_size)
AVIOContext *pb = wf->pb_filesystem;
int nread = 0;
- if (wf->error || url_ferror(pb))
+ if (wf->error || pb->error)
return -1;
if (wf->position >= wf->length || pb->eof_reached)
return 0;