decoder: include cleanup

This commit is contained in:
Max Kellermann 2016-10-29 11:04:49 +02:00
parent a2e3dc0592
commit a55bb28069
6 changed files with 1 additions and 11 deletions

View File

@ -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);
}

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -29,7 +29,6 @@
#include "../InputPlugin.hxx"
#include "PluginUnavailable.hxx"
#include "util/StringCompare.hxx"
#include "util/Error.hxx"
extern "C" {
#include <libavformat/avio.h>

View File

@ -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>