Commit 098c8551 authored by stefano's avatar stefano

Make url_seek() return AVERROR(ENOSYS) rather than AVERROR(EPIPE) in

the case where the seek operation is not defined in the protocol
handler.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@22901 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 2e5fadcd
...@@ -201,7 +201,7 @@ int64_t url_seek(URLContext *h, int64_t pos, int whence) ...@@ -201,7 +201,7 @@ int64_t url_seek(URLContext *h, int64_t pos, int whence)
int64_t ret; int64_t ret;
if (!h->prot->url_seek) if (!h->prot->url_seek)
return AVERROR(EPIPE); return AVERROR(ENOSYS);
ret = h->prot->url_seek(h, pos, whence & ~AVSEEK_FORCE); ret = h->prot->url_seek(h, pos, whence & ~AVSEEK_FORCE);
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment