Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | | TextInputStream: don't strip | Max Kellermann | 2014-08-07 | 1 | -3/+3 | |
| | | | | | | | | | | Let the caller decide whether to strip. Only remove \n and \r (end-of-line markers). | |||||
* | | TextInputStream: move code to ReadBufferedLine() | Max Kellermann | 2014-08-07 | 2 | -34/+45 | |
| | | | | | | | | | | Look at the buffer first, before trying to read from the file. This reduces overhead because we don't refill the buffer after every line. | |||||
* | | util/StringUtil: add StripRight() overload with "end" argument | Max Kellermann | 2014-08-07 | 2 | -10/+6 | |
| | | ||||||
* | | util/CharUtil: add IsWhitespaceFast() | Max Kellermann | 2014-08-07 | 1 | -1/+1 | |
| | | ||||||
* | | input/TextInputStream: return char* | Max Kellermann | 2014-08-07 | 2 | -18/+15 | |
| | | | | | | | | | | Revert to the old API before commit e9e55b08, removing unnecessary bloat. | |||||
* | | util/FifoBuffer: rename to StaticFifoBuffer | Max Kellermann | 2014-08-06 | 1 | -2/+2 | |
| | | ||||||
* | | input/curl: options "verify_peer" and "verify_host" | Max Kellermann | 2014-07-11 | 1 | -0/+8 | |
| | | ||||||
* | | input/async: more API documentation | Max Kellermann | 2014-07-10 | 1 | -0/+26 | |
| | | ||||||
* | | input/async: use IsEOF() instead of !open for "ready" check | Max Kellermann | 2014-06-21 | 1 | -2/+3 | |
| | | | | | | | | | | Checking "!open" did not work with the NFS plugin because that plugin does not close the file automatically, unlike CURL. | |||||
* | | Revert "AsyncInputStream: fix assertion failure in AppendToBuffer()" | Max Kellermann | 2014-06-21 | 1 | -6/+4 | |
| | | | | | | | | | | | | | | This reverts commit 966c4244cbe0de174df1e72e917078269ec9dbb9. The commit was bad, because the bug was really in NfsInputStream::DoRead(); see previous commit. | |||||
* | | input/nfs: never read more than space available in buffer | Max Kellermann | 2014-06-21 | 1 | -2/+4 | |
| | | | | | | | | Avoids off-by-one bug and obsoletes the bug fix in commit 966c4244 | |||||
* | | input/nfs: use the asynchronous libnfs API | Max Kellermann | 2014-06-17 | 1 | -84/+138 | |
| | | | | | | | | More robust and cancellable. | |||||
* | | AsyncInputStream: fix assertion failure in AppendToBuffer() | Max Kellermann | 2014-06-17 | 1 | -4/+6 | |
| | | ||||||
* | | AsyncInputStream: reset "paused" when seeking | Max Kellermann | 2014-06-17 | 1 | -0/+1 | |
| | | | | | | | | May cause assertion failure. | |||||
* | | input/curl: hold mutex while writing to postponed_error | Max Kellermann | 2014-06-17 | 3 | -3/+16 | |
| | | ||||||
* | | input/AsyncInputStream: add method IsBufferFull() | Max Kellermann | 2014-06-17 | 1 | -0/+4 | |
| | | ||||||
* | | input/async: add offset/size comparison to IsEOF() | Max Kellermann | 2014-05-24 | 1 | -1/+2 | |
| | | ||||||
* | | input/curl: move code to AsyncInputStream | Max Kellermann | 2014-05-24 | 3 | -211/+409 | |
| | | | | | | | | | | New base class for other InputStream implementations that run in the I/O thread. | |||||
* | | input/curl: call SetReady() only if not yet ready | Max Kellermann | 2014-05-24 | 1 | -1/+2 | |
| | | | | | | Fixes assertion failure. | |||||
* | | input/curl: include cleanup | Max Kellermann | 2014-05-24 | 1 | -7/+0 | |
| | | ||||||
* | | InputStream: make Seek() always absolute | Max Kellermann | 2014-05-22 | 11 | -84/+37 | |
| | | | | | | | | | | Remove the "whence" parameter that is not actually necessary, and only complicates the InputStream implementations. | |||||
* | | input/curl: relock mutex in error paths | Max Kellermann | 2014-05-21 | 1 | -2/+7 | |
| | | ||||||
* | | input/curl: pass remaining size to CircularBuffer::Append() | Max Kellermann | 2014-05-21 | 1 | -1/+1 | |
| | | ||||||
* | | input/curl: move code to IcyInputStream | Max Kellermann | 2014-05-21 | 3 | -86/+182 | |
| | | ||||||
* | | input/rewind: move code to class ProxyInputStream | Max Kellermann | 2014-05-21 | 3 | -59/+175 | |
| | | ||||||
* | | input/InputStream: move Open() to Open.cxx | Max Kellermann | 2014-05-21 | 2 | -50/+72 | |
| | | | | | | | | Allow compiling test programs with only selected plugins. | |||||
* | | input/rewind: include cleanup | Max Kellermann | 2014-05-21 | 1 | -4/+2 | |
| | | ||||||
* | | input/rewind: work around assertion failure | Max Kellermann | 2014-05-21 | 1 | -1/+1 | |
| | | | | | | | | Caused by commit 0b4fa41a | |||||
* | | ThreadInputStream: include cleanup | Max Kellermann | 2014-05-12 | 1 | -1/+0 | |
| | | ||||||
* | | InputStream: "protect" attributes | Max Kellermann | 2014-05-12 | 2 | -8/+24 | |
| | | ||||||
* | | input/cdio: convert to class | Max Kellermann | 2014-05-12 | 1 | -1/+2 | |
| | | ||||||
* | | input/cdio: move initialization code to constructor | Max Kellermann | 2014-05-12 | 1 | -51/+50 | |
| | | | | | | | | | | | | Make attributes const, don't allow partial initialization. Instantiate the CdioParanoiaInputStream object at the end of input_cdio_open(). | |||||
* | | input/cdio: handle cdio_open() failure | Max Kellermann | 2014-05-12 | 1 | -0/+5 | |
| | | ||||||
* | | input/cdio: initialize lsn_relofs in constructor | Max Kellermann | 2014-05-12 | 1 | -2/+1 | |
| | | ||||||
* | | input/cdio: initialize attribute "buffer_lsn" | Max Kellermann | 2014-05-12 | 1 | -1/+2 | |
| | | ||||||
* | | input/cdio: remove unused attribute "trackno" | Max Kellermann | 2014-05-12 | 1 | -11/+6 | |
| | | ||||||
* | | InputStream: remove attribute "plugin" | Max Kellermann | 2014-05-11 | 13 | -33/+18 | |
| | | ||||||
* | | InputStream: make various methods abstract | Max Kellermann | 2014-05-11 | 16 | -569/+211 | |
| | | | | | | | | Replace InputPlugin attributes. | |||||
* | | InputStream: add virtual destructor | Max Kellermann | 2014-05-11 | 16 | -125/+29 | |
| | | | | | | Replaces the method Close(). | |||||
* | | input/plugins: make InputStream the base class | Max Kellermann | 2014-05-11 | 12 | -274/+202 | |
| | | | | | | | | Prepare for adding virtual methods. | |||||
* | | input/rewind: convert to class | Max Kellermann | 2014-05-11 | 1 | -46/+89 | |
| | | ||||||
* | | InputStream: convert to class | Max Kellermann | 2014-05-11 | 14 | -46/+107 | |
| | | ||||||
* | | input/nfs: add missing string.h include | Max Kellermann | 2014-04-23 | 1 | -0/+1 | |
| | | | | | | | | For strrchr(). Fixes build failure. | |||||
* | | input/mms: move blocking I/O to thread | Max Kellermann | 2014-03-16 | 1 | -60/+50 | |
| | | ||||||
* | | input/BufferedInputStream: new wrapper for moving plugin to thread | Max Kellermann | 2014-03-16 | 2 | -0/+385 | |
| | | ||||||
* | | input/alsa: don't initialize "seekable=false", "size=-1" | Max Kellermann | 2014-03-16 | 1 | -2/+0 | |
| | | | | | | | | These are the default values already. | |||||
* | | input/curl: use CircularBuffer | Max Kellermann | 2014-03-16 | 1 | -133/+75 | |
| | | | | | | | | Replaces its own weird buffering code. | |||||
* | | input/curl: add method CurlInputStream::Open() | Max Kellermann | 2014-03-15 | 1 | -12/+17 | |
| | | ||||||
* | | input/curl: move _seek() into the CurlInputStream class | Max Kellermann | 2014-03-15 | 1 | -38/+44 | |
| | | ||||||
* | | input/curl: move _easy_init() into the CurlInputStream class | Max Kellermann | 2014-03-15 | 1 | -30/+30 | |
| | |