CReadState has its own internal buffer, it can always seek on it.

a stream is not only seekable or not seekable, on the most time, it can
seek on certain ranges even if the stream is not seekable by direct jump.


2014-04-13 7:29 GMT+08:00 Trent Nelson <notifications@github.com>:

> In xbmc/filesystem/CurlFile.cpp:
>
> > @@ -1134,6 +1134,10 @@ bool CCurlFile::Exists(const CURL& url)
> >  int64_t CCurlFile::Seek(int64_t iFilePosition, int iWhence)
> >  {
> >    int64_t nextPos = m_state->m_filePos;
> > +
> > +  if(!m_seekable)
> > +    return -1;
> > +
>
> CReadState::Seek() has no direct bearing on CCurlFile::m_seekable. I don't
> understand what benefit trying to seek something we've apparently already
> determined wasn't seekable offers?
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/xbmc/xbmc/pull/4546/files#r11562516>
> .
>