aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-10-02 21:15:48 +0200
committerMax Kellermann <max@duempel.org>2014-10-02 22:00:42 +0200
commit8302ed44aa4918a647bdbe8bf69fb3d92833a427 (patch)
tree5b1f7041325529bf57c0578c02b37ee3e9045364 /src
parent7e12aea1d8f90d375627acc9f4a532009781aa26 (diff)
downloadmpd-8302ed44aa4918a647bdbe8bf69fb3d92833a427.tar.gz
mpd-8302ed44aa4918a647bdbe8bf69fb3d92833a427.tar.xz
mpd-8302ed44aa4918a647bdbe8bf69fb3d92833a427.zip
archive/bzip2: use OpenLocalInputStream()
Diffstat (limited to 'src')
-rw-r--r--src/archive/plugins/Bzip2ArchivePlugin.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/archive/plugins/Bzip2ArchivePlugin.cxx b/src/archive/plugins/Bzip2ArchivePlugin.cxx
index 14a68fdb5..2b92049dd 100644
--- a/src/archive/plugins/Bzip2ArchivePlugin.cxx
+++ b/src/archive/plugins/Bzip2ArchivePlugin.cxx
@@ -28,6 +28,7 @@
#include "../ArchiveVisitor.hxx"
#include "input/InputStream.hxx"
#include "input/InputPlugin.hxx"
+#include "input/LocalOpen.hxx"
#include "util/RefCount.hxx"
#include "util/Error.hxx"
#include "util/Domain.hxx"
@@ -140,8 +141,7 @@ bz2_open(Path pathname, Error &error)
{
static Mutex mutex;
static Cond cond;
- InputStream *is = InputStream::OpenReady(pathname.c_str(), mutex, cond,
- error);
+ InputStream *is = OpenLocalInputStream(pathname, mutex, cond, error);
if (is == nullptr)
return nullptr;