decoder/Bridge: add method OpenLocal()
This commit is contained in:
src/decoder
@@ -30,6 +30,8 @@
|
||||
#include "tag/Tag.hxx"
|
||||
#include "Log.hxx"
|
||||
#include "input/InputStream.hxx"
|
||||
#include "input/LocalOpen.hxx"
|
||||
#include "fs/Path.hxx"
|
||||
#include "util/ConstBuffer.hxx"
|
||||
#include "util/StringBuffer.hxx"
|
||||
|
||||
@@ -49,6 +51,12 @@ DecoderBridge::~DecoderBridge() noexcept
|
||||
assert(current_chunk == nullptr);
|
||||
}
|
||||
|
||||
InputStreamPtr
|
||||
DecoderBridge::OpenLocal(Path path_fs)
|
||||
{
|
||||
return OpenLocalInputStream(path_fs, dc.mutex);
|
||||
}
|
||||
|
||||
bool
|
||||
DecoderBridge::CheckCancelRead() const noexcept
|
||||
{
|
||||
|
Reference in New Issue
Block a user