AudioOutput: pass plugin to constructor
Make it "const".
This commit is contained in:
@@ -45,6 +45,9 @@ struct OSXOutput {
|
||||
Cond condition;
|
||||
|
||||
DynamicFifoBuffer<uint8_t> *buffer;
|
||||
|
||||
OSXOutput()
|
||||
:base(osx_output_plugin) {}
|
||||
};
|
||||
|
||||
static constexpr Domain osx_output_domain("osx_output");
|
||||
@@ -81,7 +84,7 @@ static AudioOutput *
|
||||
osx_output_init(const config_param ¶m, Error &error)
|
||||
{
|
||||
OSXOutput *oo = new OSXOutput();
|
||||
if (!ao_base_init(&oo->base, &osx_output_plugin, param, error)) {
|
||||
if (!ao_base_init(&oo->base, param, error)) {
|
||||
delete oo;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user