1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-24 13:56:33 +02:00

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

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

Originally committed as revision 22901 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Stefano Sabatini 2010-04-18 17:37:16 +00:00
parent 22c29c36cd
commit 28894105c8

View File

@ -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(ENOSYS);
ret = h->prot->url_seek(h, pos, whence & ~AVSEEK_FORCE);
return ret;
}