[PATCH 01/12] Make url_seek() return ESPIPE if the seek operation is not defined in the protocol, rather than EPIPE.

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..1d12436 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(ESPIPE);
     ret = h->prot->url_seek(h, pos, whence & ~AVSEEK_FORCE);
     return ret;
 }
-- 
1.6.6.1


--vtzGhvizbBRQ85DL--



More information about the ffmpeg-devel mailing list