diff options
author | Max Kellermann <max@duempel.org> | 2014-10-02 21:17:31 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-10-02 21:50:14 +0200 |
commit | 7e12aea1d8f90d375627acc9f4a532009781aa26 (patch) | |
tree | 9092dc1a8e12928af37e234f4b1d57f42891c8d3 /src/decoder | |
parent | 20346b0da454a114a9eb3dc99fcdf5f984d45240 (diff) |
input/Open: use OpenLocalInputStream()
Make the "open" method of plugins "file" and "archive" dummy methods
that always fail. Instead, let InputStream::Open() hard-code access
to these two plugins by using OpenLocalInputStream(). This allows
simplifyin the algorithm for falling back to probing archive plugins.
Diffstat (limited to 'src/decoder')
-rw-r--r-- | src/decoder/DecoderThread.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/decoder/DecoderThread.cxx b/src/decoder/DecoderThread.cxx index 257a0d4ae..a39cfa6e9 100644 --- a/src/decoder/DecoderThread.cxx +++ b/src/decoder/DecoderThread.cxx @@ -115,9 +115,7 @@ decoder_input_stream_open(DecoderControl &dc, Path path) InputStream *is = OpenLocalInputStream(path, dc.mutex, dc.cond, error); if (is == nullptr) { - if (error.IsDefined()) - LogError(error); - + LogError(error); return nullptr; } |