aboutsummaryrefslogtreecommitdiffstats
path: root/src/output/jack_output_plugin.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-11-06 01:54:58 +0100
committerMax Kellermann <max@duempel.org>2009-11-06 01:54:58 +0100
commitfac6e9ecdba34f98e55644010527c0b8f960e98e (patch)
tree1779481e83ecc1cf41d916bfe983178d885b29a7 /src/output/jack_output_plugin.c
parentdbbead6e72cce85b41050fd2a14875f60a6351a2 (diff)
downloadmpd-fac6e9ecdba34f98e55644010527c0b8f960e98e.tar.gz
mpd-fac6e9ecdba34f98e55644010527c0b8f960e98e.tar.xz
mpd-fac6e9ecdba34f98e55644010527c0b8f960e98e.zip
output/jack: renamed option "ports" to "destination_ports"
Be more clear which kind of port should be configured here.
Diffstat (limited to 'src/output/jack_output_plugin.c')
-rw-r--r--src/output/jack_output_plugin.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/output/jack_output_plugin.c b/src/output/jack_output_plugin.c
index 0986a635d..d4aea0f67 100644
--- a/src/output/jack_output_plugin.c
+++ b/src/output/jack_output_plugin.c
@@ -238,7 +238,15 @@ mpd_jack_init(G_GNUC_UNUSED const struct audio_format *audio_format,
if (!config_get_block_bool(param, "autostart", false))
jd->options |= JackNoStartServer;
- value = config_get_block_string(param, "ports", NULL);
+ value = config_get_block_string(param, "destination_ports", NULL);
+ if (value == NULL) {
+ /* compatibility with MPD < 0.16 */
+ value = config_get_block_string(param, "ports", NULL);
+ if (value != NULL)
+ g_warning("deprecated option 'ports' in line %d",
+ param->line);
+ }
+
if (value != NULL) {
char **ports = g_strsplit(value, ",", 0);