• Max Kellermann's avatar
    input/buffered: fix bogus offset after Seek() · c8e6f50d
    Max Kellermann authored
    Instead of copying the offset from our `input`, copy the requested
    offset to our `offset` attribute.
    
    By the time Seek() finishes, our input's offset may have advanced
    already, having read some more data, thus giving us a bogus offset.
    
    This fixes spurious decoder failues (closes #320).
    c8e6f50d
Name
Last commit
Last update
..
plugins Loading commit data...
AsyncInputStream.cxx Loading commit data...
AsyncInputStream.hxx Loading commit data...
BufferedInputStream.cxx Loading commit data...
BufferedInputStream.hxx Loading commit data...
CondHandler.hxx Loading commit data...
Error.cxx Loading commit data...
Error.hxx Loading commit data...
FailingInputStream.hxx Loading commit data...
Handler.hxx Loading commit data...
IcyInputStream.cxx Loading commit data...
IcyInputStream.hxx Loading commit data...
Init.cxx Loading commit data...
Init.hxx Loading commit data...
InputPlugin.hxx Loading commit data...
InputStream.cxx Loading commit data...
InputStream.hxx Loading commit data...
LocalOpen.cxx Loading commit data...
LocalOpen.hxx Loading commit data...
MaybeBufferedInputStream.cxx Loading commit data...
MaybeBufferedInputStream.hxx Loading commit data...
Offset.hxx Loading commit data...
Open.cxx Loading commit data...
ProxyInputStream.cxx Loading commit data...
ProxyInputStream.hxx Loading commit data...
Ptr.hxx Loading commit data...
Reader.cxx Loading commit data...
Reader.hxx Loading commit data...
Registry.cxx Loading commit data...
Registry.hxx Loading commit data...
RemoteTagScanner.hxx Loading commit data...
RewindInputStream.cxx Loading commit data...
RewindInputStream.hxx Loading commit data...
ScanTags.cxx Loading commit data...
ScanTags.hxx Loading commit data...
TextInputStream.cxx Loading commit data...
TextInputStream.hxx Loading commit data...
ThreadInputStream.cxx Loading commit data...
ThreadInputStream.hxx Loading commit data...