wildmidi: obtain timidity.cfg location from mpd.conf

This commit is contained in:
Max Kellermann 2009-02-15 18:41:03 +01:00
parent 1f88cd73d4
commit 5c68f91dae

View File

@ -30,12 +30,15 @@ enum {
}; };
static bool 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; int ret;
ret = WildMidi_Init("/etc/timidity/timidity.cfg", config_file = config_get_block_string(param, "config_file",
WILDMIDI_SAMPLE_RATE, 0); "/etc/timidity/timidity.cfg");
ret = WildMidi_Init(config_file, WILDMIDI_SAMPLE_RATE, 0);
return ret == 0; return ret == 0;
} }