diff options
author | Thomas Jansen <mithi@mithi.net> | 2011-02-04 14:14:29 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2011-02-09 22:42:51 +0100 |
commit | 144d09263786a4cdc6cfc19c5bf3ae7784e5f6e1 (patch) | |
tree | b615daaf38a87558d96383934dce2968119c9381 /src/output/shout_plugin.c | |
parent | 2bde9afdb9ea82525256686b16034fce99f4f63a (diff) | |
download | mpd-144d09263786a4cdc6cfc19c5bf3ae7784e5f6e1.tar.gz mpd-144d09263786a4cdc6cfc19c5bf3ae7784e5f6e1.tar.xz mpd-144d09263786a4cdc6cfc19c5bf3ae7784e5f6e1.zip |
output/shout: add possibility to set url
Added a new optional parameter for the shout plugin called "url".
Diffstat (limited to 'src/output/shout_plugin.c')
-rw-r--r-- | src/output/shout_plugin.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/output/shout_plugin.c b/src/output/shout_plugin.c index 3ce4d637e..484e47316 100644 --- a/src/output/shout_plugin.c +++ b/src/output/shout_plugin.c @@ -277,6 +277,13 @@ my_shout_init_driver(const struct audio_format *audio_format, return NULL; } + value = config_get_block_string(param, "url", NULL); + if (value != NULL && shout_set_url(sd->shout_conn, value)) { + g_set_error(error, shout_output_quark(), 0, + "%s", shout_get_error(sd->shout_conn)); + return NULL; + } + { char temp[11]; memset(temp, 0, sizeof(temp)); |