From 28894105c8fe255ab12f7e7d23b67dd1ad3cf5f1 Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Sun, 18 Apr 2010 17:37:16 +0000 Subject: [PATCH] Make url_seek() return AVERROR(ENOSYS) rather than AVERROR(EPIPE) in the case where the seek operation is not defined in the protocol handler. Originally committed as revision 22901 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/avio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/avio.c b/libavformat/avio.c index af9e049142..3fb64d149c 100644 --- a/libavformat/avio.c +++ b/libavformat/avio.c @@ -201,7 +201,7 @@ int64_t url_seek(URLContext *h, int64_t pos, int whence) int64_t ret; if (!h->prot->url_seek) - return AVERROR(EPIPE); + return AVERROR(ENOSYS); ret = h->prot->url_seek(h, pos, whence & ~AVSEEK_FORCE); return ret; }