aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-10-02 19:14:10 +0200
committerMax Kellermann <max@duempel.org>2014-10-02 22:03:02 +0200
commit6e7a398263511efa5c631f0056ccefad5c1f46ea (patch)
treef625faa24a8fda3701472679ac7b1320f85d518d /src
parent44d2d9b1e83d5f7a1a295f9b4f7696d5d7902c14 (diff)
downloadmpd-6e7a398263511efa5c631f0056ccefad5c1f46ea.tar.gz
mpd-6e7a398263511efa5c631f0056ccefad5c1f46ea.tar.xz
mpd-6e7a398263511efa5c631f0056ccefad5c1f46ea.zip
PlaylistStream: use OpenLocalInputStream()
Diffstat (limited to '')
-rw-r--r--src/playlist/PlaylistStream.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/playlist/PlaylistStream.cxx b/src/playlist/PlaylistStream.cxx
index 123dbdb6c..074f39d66 100644
--- a/src/playlist/PlaylistStream.cxx
+++ b/src/playlist/PlaylistStream.cxx
@@ -24,6 +24,7 @@
#include "util/UriUtil.hxx"
#include "util/Error.hxx"
#include "input/InputStream.hxx"
+#include "input/LocalOpen.hxx"
#include "fs/Path.hxx"
#include "Log.hxx"
@@ -39,12 +40,9 @@ playlist_open_path_suffix(Path path, Mutex &mutex, Cond &cond)
return nullptr;
Error error;
- InputStream *is = InputStream::OpenReady(path.c_str(),
- mutex, cond, error);
+ InputStream *is = OpenLocalInputStream(path, mutex, cond, error);
if (is == nullptr) {
- if (error.IsDefined())
- LogError(error);
-
+ LogError(error);
return nullptr;
}