aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/avio.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2010-04-18 17:37:16 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2010-04-18 17:37:16 +0000
commit28894105c8fe255ab12f7e7d23b67dd1ad3cf5f1 (patch)
treefaa26959d6526fe8a14a36427a051acb7fd55e5c /libavformat/avio.c
parent22c29c36cdc12865ae7db1193b53c8f5ef265fd9 (diff)
downloadffmpeg-28894105c8fe255ab12f7e7d23b67dd1ad3cf5f1.tar.gz
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
Diffstat (limited to 'libavformat/avio.c')
-rw-r--r--libavformat/avio.c2
1 files changed, 1 insertions, 1 deletions
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;
}