aboutsummaryrefslogtreecommitdiffstats
path: root/src/input/AsyncInputStream.cxx (unfollow)
Commit message (Collapse)AuthorFilesLines
2015-01-06input/async: reset the "open" flag after seeking successfullyMax Kellermann1-0/+5
Fixes a problem with the "curl" input plugin: IsEOF() always returns true because the "open" flag was cleared by CurlInputStream::RequestDone() when end-of-stream was reached. This flag stays false even when seeking to another position has succeeded. This patch resets the "open" flag to true after seeking successfully.
2015-01-01Copyright year 2015Max Kellermann1-1/+1
2014-11-07input/AsyncInputStream: set Error when seeking unseekableMax Kellermann1-1/+4
Fixes crash in the "audiofile" decoder while logging the seek error.
2014-08-19InputStream: make offset_type unsignedMax Kellermann1-3/+0
2014-06-21input/async: use IsEOF() instead of !open for "ready" checkMax Kellermann1-2/+3
Checking "!open" did not work with the NFS plugin because that plugin does not close the file automatically, unlike CURL.
2014-06-21Revert "AsyncInputStream: fix assertion failure in AppendToBuffer()"Max Kellermann1-6/+4
This reverts commit 966c4244cbe0de174df1e72e917078269ec9dbb9. The commit was bad, because the bug was really in NfsInputStream::DoRead(); see previous commit.
2014-06-17AsyncInputStream: fix assertion failure in AppendToBuffer()Max Kellermann1-4/+6
2014-06-17AsyncInputStream: reset "paused" when seekingMax Kellermann1-0/+1
May cause assertion failure.
2014-06-17input/curl: hold mutex while writing to postponed_errorMax Kellermann1-0/+10
2014-05-24input/async: add offset/size comparison to IsEOF()Max Kellermann1-1/+2
2014-05-24input/curl: move code to AsyncInputStreamMax Kellermann1-0/+239
New base class for other InputStream implementations that run in the I/O thread.