diff avio.c @ 5960:c758fd290a6e libavformat

Make url_seek() return AVERROR(ENOSYS) rather than AVERROR(EPIPE) in the case where the seek operation is not defined in the protocol handler.
author stefano
date Sun, 18 Apr 2010 17:37:16 +0000
parents a9a36b4f83a2
children d5672e116fe4
line wrap: on
line diff
--- a/avio.c	Fri Apr 16 20:36:24 2010 +0000
+++ b/avio.c	Sun Apr 18 17:37:16 2010 +0000
@@ -201,7 +201,7 @@
     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;
 }