changeset 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 ed7556aaaea5
children d9da72409ff9
files avio.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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;
 }