changeset 5961:d9da72409ff9 libavformat

Make url_fsize() return AVERROR(ENOSYS) rather than AVERROR(EPIPE) if the seek operation is not defined in the ByteIOContext.
author stefano
date Sun, 18 Apr 2010 17:37:21 +0000
parents c758fd290a6e
children e967aa2c1754
files aviobuf.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/aviobuf.c	Sun Apr 18 17:37:16 2010 +0000
+++ b/aviobuf.c	Sun Apr 18 17:37:21 2010 +0000
@@ -197,7 +197,7 @@
         return AVERROR(EINVAL);
 
     if (!s->seek)
-        return AVERROR(EPIPE);
+        return AVERROR(ENOSYS);
     size = s->seek(s->opaque, 0, AVSEEK_SIZE);
     if(size<0){
         if ((size = s->seek(s->opaque, -1, SEEK_END)) < 0)