output/shout: add possibility to set url
Added a new optional parameter for the shout plugin called "url".
This commit is contained in:
parent
2bde9afdb9
commit
144d092637
1
NEWS
1
NEWS
|
@ -9,6 +9,7 @@ ver 0.17 (2011/??/??)
|
|||
* output:
|
||||
- osx: allow user to specify other audio devices
|
||||
- raop: new output plugin
|
||||
- shout: add possibility to set url
|
||||
|
||||
|
||||
ver 0.16.1 (2011/01/09)
|
||||
|
|
|
@ -464,6 +464,9 @@ connect to the icecast server. The default is 2 seconds.
|
|||
.B description <description>
|
||||
This specifies a description of the stream.
|
||||
.TP
|
||||
.B url <url>
|
||||
This specifies a URL associated with the stream.
|
||||
.TP
|
||||
.B genre <genre>
|
||||
This specifies the genre(s) of the stream.
|
||||
.SH FILES
|
||||
|
|
|
@ -235,6 +235,7 @@ input {
|
|||
## protocol "icecast2" # optional
|
||||
## user "source" # optional
|
||||
## description "My Stream Description" # optional
|
||||
## url "http://example.com" # optional
|
||||
## genre "jazz" # optional
|
||||
## public "no" # optional
|
||||
## timeout "2" # optional
|
||||
|
|
|
@ -1557,6 +1557,15 @@ cd mpd-version</programlisting>
|
|||
Sets a short description of the stream (optional).
|
||||
</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>
|
||||
<varname>url</varname>
|
||||
<parameter>URL</parameter>
|
||||
</entry>
|
||||
<entry>
|
||||
Sets a URL associated with the stream (optional).
|
||||
</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>
|
||||
<varname>public</varname>
|
||||
|
|
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue