diff options
author | Max Kellermann <max@duempel.org> | 2008-09-24 07:20:36 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-09-24 07:20:36 +0200 |
commit | 3cae6856b8c6096b3f932a4ab30476a8d1187e58 (patch) | |
tree | ce4a7dfea71105b723779b08d37108ec3f258bdd /src/output_init.c | |
parent | d32f49a90ba69525884ee6fe4f2055792aa10430 (diff) | |
download | mpd-3cae6856b8c6096b3f932a4ab30476a8d1187e58.tar.gz mpd-3cae6856b8c6096b3f932a4ab30476a8d1187e58.tar.xz mpd-3cae6856b8c6096b3f932a4ab30476a8d1187e58.zip |
output: pass audio_format to plugin.init() and plugin.open()
Pass the globally configured audio_format as a const pointer to
plugin.init(). plugin.open() gets a writable pointer which contains
the audio_format requested by the plugin. Its initial value is either
the configured audio_format or the input file's audio_format.
Diffstat (limited to '')
-rw-r--r-- | src/output_init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/output_init.c b/src/output_init.c index f57f39336..25883cee1 100644 --- a/src/output_init.c +++ b/src/output_init.c @@ -102,7 +102,7 @@ int audio_output_init(struct audio_output *ao, ConfigParam * param) notify_init(&ao->notify); ao->command = AO_COMMAND_NONE; - if (plugin->init(ao, param) != 0) + if (plugin->init(ao, format ? &ao->reqAudioFormat : NULL, param) != 0) return 0; return 1; |