output/Plugin: pass EventLoop& to init()

Eliminate dependency on io_thread_get().
This commit is contained in:
Max Kellermann
2017-01-25 09:47:43 +01:00
parent d3f35dab1e
commit 8fd9d91974
24 changed files with 58 additions and 42 deletions

View File

@@ -89,7 +89,8 @@ public:
:base(oss_output_plugin, block),
fd(-1), device(_device) {}
static OssOutput *Create(const ConfigBlock &block);
static OssOutput *Create(EventLoop &event_loop,
const ConfigBlock &block);
#ifdef AFMT_S24_PACKED
void Enable() {
@@ -226,7 +227,7 @@ oss_open_default()
}
inline OssOutput *
OssOutput::Create(const ConfigBlock &block)
OssOutput::Create(EventLoop &, const ConfigBlock &block)
{
const char *device = block.GetBlockValue("device");
if (device != nullptr)