{input,decoder}/ffmpeg: move ffmpeg_domain to lib/ffmpeg/Domain.cxx

Eliminate duplicate definition (in input plugin and decoder plugin).
This commit is contained in:
Max Kellermann
2014-08-18 10:12:37 +02:00
parent 41a4b280ee
commit 636f5d4a1d
5 changed files with 64 additions and 7 deletions

View File

@@ -22,11 +22,11 @@
#include "config.h"
#include "FfmpegInputPlugin.hxx"
#include "lib/ffmpeg/Domain.hxx"
#include "../InputStream.hxx"
#include "../InputPlugin.hxx"
#include "util/StringUtil.hxx"
#include "util/Error.hxx"
#include "util/Domain.hxx"
extern "C" {
#include <libavformat/avio.h>
@@ -63,8 +63,6 @@ struct FfmpegInputStream final : public InputStream {
bool Seek(offset_type offset, Error &error) override;
};
static constexpr Domain ffmpeg_domain("ffmpeg");
static inline bool
input_ffmpeg_supported(void)
{