Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
144d0926
Commit
144d0926
authored
Feb 04, 2011
by
Thomas Jansen
Committed by
Max Kellermann
Feb 09, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
output/shout: add possibility to set url
Added a new optional parameter for the shout plugin called "url".
parent
2bde9afd
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
0 deletions
+21
-0
NEWS
NEWS
+1
-0
mpd.conf.5
doc/mpd.conf.5
+3
-0
mpdconf.example
doc/mpdconf.example
+1
-0
user.xml
doc/user.xml
+9
-0
shout_plugin.c
src/output/shout_plugin.c
+7
-0
No files found.
NEWS
View file @
144d0926
...
...
@@ -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)
...
...
doc/mpd.conf.5
View file @
144d0926
...
...
@@ -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
...
...
doc/mpdconf.example
View file @
144d0926
...
...
@@ -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
...
...
doc/user.xml
View file @
144d0926
...
...
@@ -1559,6 +1559,15 @@ cd mpd-version</programlisting>
</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>
<parameter>
yes|no
</parameter>
</entry>
...
...
src/output/shout_plugin.c
View file @
144d0926
...
...
@@ -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
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment