From 3e68b3ba7b015cf2154ad2023781eedd47f0f4bb Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Mon, 14 Mar 2011 20:38:55 +0100 Subject: avio: deprecate url_ferror AVIOContext.error should be used directly instead. Signed-off-by: Ronald S. Bultje --- libavformat/wtv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat/wtv.c') 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; -- cgit v1.2.3