You need to sign in or sign up before continuing.
Commit 6e7a3982 authored by Max Kellermann's avatar Max Kellermann

PlaylistStream: use OpenLocalInputStream()

parent 44d2d9b1
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
#include "util/UriUtil.hxx" #include "util/UriUtil.hxx"
#include "util/Error.hxx" #include "util/Error.hxx"
#include "input/InputStream.hxx" #include "input/InputStream.hxx"
#include "input/LocalOpen.hxx"
#include "fs/Path.hxx" #include "fs/Path.hxx"
#include "Log.hxx" #include "Log.hxx"
...@@ -39,12 +40,9 @@ playlist_open_path_suffix(Path path, Mutex &mutex, Cond &cond) ...@@ -39,12 +40,9 @@ playlist_open_path_suffix(Path path, Mutex &mutex, Cond &cond)
return nullptr; return nullptr;
Error error; Error error;
InputStream *is = InputStream::OpenReady(path.c_str(), InputStream *is = OpenLocalInputStream(path, mutex, cond, error);
mutex, cond, error);
if (is == nullptr) { if (is == nullptr) {
if (error.IsDefined()) LogError(error);
LogError(error);
return nullptr; return nullptr;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment