diff options
author | Max Kellermann <max@duempel.org> | 2009-02-15 18:41:03 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-02-15 18:41:03 +0100 |
commit | 5c68f91daeff90349c3f7d1b759f59f35a78fec9 (patch) | |
tree | 7d8e1402f5742f6456fa67203c9b806a016af443 /src/decoder/wildmidi_plugin.c | |
parent | 1f88cd73d43b4b67b27a5b0ba48cfa990e628244 (diff) | |
download | mpd-5c68f91daeff90349c3f7d1b759f59f35a78fec9.tar.gz mpd-5c68f91daeff90349c3f7d1b759f59f35a78fec9.tar.xz mpd-5c68f91daeff90349c3f7d1b759f59f35a78fec9.zip |
wildmidi: obtain timidity.cfg location from mpd.conf
Diffstat (limited to 'src/decoder/wildmidi_plugin.c')
-rw-r--r-- | src/decoder/wildmidi_plugin.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/decoder/wildmidi_plugin.c b/src/decoder/wildmidi_plugin.c index 532ae9525..5f13e7160 100644 --- a/src/decoder/wildmidi_plugin.c +++ b/src/decoder/wildmidi_plugin.c @@ -30,12 +30,15 @@ enum { }; static bool -wildmidi_init(G_GNUC_UNUSED const struct config_param *param) +wildmidi_init(const struct config_param *param) { + const char *config_file; int ret; - ret = WildMidi_Init("/etc/timidity/timidity.cfg", - WILDMIDI_SAMPLE_RATE, 0); + config_file = config_get_block_string(param, "config_file", + "/etc/timidity/timidity.cfg"); + + ret = WildMidi_Init(config_file, WILDMIDI_SAMPLE_RATE, 0); return ret == 0; } |