From 7e12aea1d8f90d375627acc9f4a532009781aa26 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 2 Oct 2014 21:17:31 +0200 Subject: 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. --- src/decoder/DecoderThread.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/decoder') 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; } -- cgit v1.2.3