summaryrefslogtreecommitdiff
path: root/src/output/plugins
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2017-12-19 08:40:54 +0100
committerMax Kellermann <max@musicpd.org>2017-12-19 08:41:34 +0100
commit37c27fa60658c1c997f843e3330e68e614a50ac2 (patch)
treee3906df5ab3245df80ff39bfb7979de81a213a86 /src/output/plugins
parent093ca5d4924aba0f95eb56a4538190346ffaa8d6 (diff)
output/Interface: convert need_fully_defined_audio_format to flag
Diffstat (limited to 'src/output/plugins')
-rw-r--r--src/output/plugins/ShoutOutputPlugin.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/output/plugins/ShoutOutputPlugin.cxx b/src/output/plugins/ShoutOutputPlugin.cxx
index 2a26ba8a4..97df09b21 100644
--- a/src/output/plugins/ShoutOutputPlugin.cxx
+++ b/src/output/plugins/ShoutOutputPlugin.cxx
@@ -97,12 +97,10 @@ ShoutSetAudioInfo(shout_t *shout_conn, const AudioFormat &audio_format)
}
ShoutOutput::ShoutOutput(const ConfigBlock &block)
- :AudioOutput(FLAG_PAUSE),
+ :AudioOutput(FLAG_PAUSE|FLAG_NEED_FULLY_DEFINED_AUDIO_FORMAT),
shout_conn(shout_new()),
prepared_encoder(CreateConfiguredEncoder(block, true))
{
- NeedFullyDefinedAudioFormat();
-
const char *host = require_block_string(block, "host");
const char *mount = require_block_string(block, "mount");
unsigned port = block.GetBlockValue("port", 0u);