output/shout: add possibility to set url
Added a new optional parameter for the shout plugin called "url".
This commit is contained in:

committed by
Max Kellermann

parent
2bde9afdb9
commit
144d092637
@@ -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));
|
||||
|
Reference in New Issue
Block a user