[PATCH 2/5] Make url_seek() return AVERROR(ENOSYS) rather than AVERROR(EPIPE) in the case where the seek operation is not defined in the protocol handler.

Stefano Sabatini stefano.sabatini-lala
Tue Mar 16 22:48:37 CET 2010


---
 libavformat/avio.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavformat/avio.c b/libavformat/avio.c
index af9e049..3fb64d1 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;
 }
-- 
1.7.0


--9zSXsLTf0vkW971A
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment; filename="0003-Make-url_fseek-return-AVERROR-ENOSYS-rather-than-AVE.patch"




More information about the ffmpeg-devel mailing list