decoder: include cleanup
This commit is contained in:
parent
a2e3dc0592
commit
a55bb28069
|
@ -26,7 +26,6 @@
|
|||
#include "plugins/RewindInputPlugin.hxx"
|
||||
#include "fs/Traits.hxx"
|
||||
#include "fs/AllocatedPath.hxx"
|
||||
#include "util/Error.hxx"
|
||||
|
||||
#include <stdexcept>
|
||||
|
||||
|
@ -35,11 +34,7 @@ InputStream::Open(const char *url,
|
|||
Mutex &mutex, Cond &cond)
|
||||
{
|
||||
if (PathTraitsUTF8::IsAbsolute(url)) {
|
||||
Error error;
|
||||
const auto path = AllocatedPath::FromUTF8(url, error);
|
||||
if (path.IsNull())
|
||||
throw std::runtime_error(error.GetMessage());
|
||||
|
||||
const auto path = AllocatedPath::FromUTF8Throw(url);
|
||||
return OpenLocalInputStream(path, mutex, cond);
|
||||
}
|
||||
|
||||
|
|
|
@ -29,7 +29,6 @@
|
|||
#include "../InputPlugin.hxx"
|
||||
#include "../AsyncInputStream.hxx"
|
||||
#include "util/Domain.hxx"
|
||||
#include "util/Error.hxx"
|
||||
#include "util/RuntimeError.hxx"
|
||||
#include "util/StringCompare.hxx"
|
||||
#include "util/ReusableArray.hxx"
|
||||
|
|
|
@ -28,7 +28,6 @@
|
|||
#include "util/StringUtil.hxx"
|
||||
#include "util/StringCompare.hxx"
|
||||
#include "util/RuntimeError.hxx"
|
||||
#include "util/Error.hxx"
|
||||
#include "util/Domain.hxx"
|
||||
#include "system/ByteOrder.hxx"
|
||||
#include "fs/AllocatedPath.hxx"
|
||||
|
|
|
@ -33,7 +33,6 @@
|
|||
#include "util/StringUtil.hxx"
|
||||
#include "util/NumberParser.hxx"
|
||||
#include "util/RuntimeError.hxx"
|
||||
#include "util/Error.hxx"
|
||||
#include "util/Domain.hxx"
|
||||
#include "Log.hxx"
|
||||
#include "PluginUnavailable.hxx"
|
||||
|
|
|
@ -29,7 +29,6 @@
|
|||
#include "../InputPlugin.hxx"
|
||||
#include "PluginUnavailable.hxx"
|
||||
#include "util/StringCompare.hxx"
|
||||
#include "util/Error.hxx"
|
||||
|
||||
extern "C" {
|
||||
#include <libavformat/avio.h>
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
#include "lib/nfs/Glue.hxx"
|
||||
#include "lib/nfs/FileReader.hxx"
|
||||
#include "util/StringCompare.hxx"
|
||||
#include "util/Error.hxx"
|
||||
|
||||
#include <string.h>
|
||||
|
||||
|
|
Loading…
Reference in New Issue