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
902cfe25
Commit
902cfe25
authored
Nov 09, 2004
by
Warren Dukes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add "genre" and "description" to shout config parameters
git-svn-id:
https://svn.musicpd.org/mpd/trunk@2557
09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent
c2a23830
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
3 deletions
+27
-3
mpdconf.example
doc/mpdconf.example
+5
-1
audioOutput_shout.c
src/audioOutputs/audioOutput_shout.c
+19
-0
listen.c
src/listen.c
+3
-2
No files found.
doc/mpdconf.example
View file @
902cfe25
...
...
@@ -77,11 +77,15 @@ audio_output {
# host "hostname"
# port "8000"
# mount "/mpd.ogg"
# user "source"
# password "hackme"
# quality "5.0"
# bitrate "128"
# format "44100:16:1"
#
# Optional Paramters
# user "source"
# description "here's my long descriptiion"
# genre "jazz"
#} # end of audio_output
#
##########################################################
...
...
src/audioOutputs/audioOutput_shout.c
View file @
902cfe25
...
...
@@ -224,6 +224,25 @@ static int myShout_initDriver(AudioOutput * audioOutput, ConfigParam * param) {
exit
(
EXIT_FAILURE
);
}
/* optional paramters */
blockParam
=
getBlockParam
(
param
,
"genre"
);
if
(
blockParam
&&
shout_set_genre
(
sd
->
shoutConn
,
blockParam
->
value
))
{
ERROR
(
"error configuring shout defined at line %i: %s
\n
"
,
param
->
line
,
shout_get_error
(
sd
->
shoutConn
));
exit
(
EXIT_FAILURE
);
}
blockParam
=
getBlockParam
(
param
,
"description"
);
if
(
blockParam
&&
shout_set_description
(
sd
->
shoutConn
,
blockParam
->
value
))
{
ERROR
(
"error configuring shout defined at line %i: %s
\n
"
,
param
->
line
,
shout_get_error
(
sd
->
shoutConn
));
exit
(
EXIT_FAILURE
);
}
{
char
temp
[
11
];
memset
(
temp
,
0
,
sizeof
(
temp
));
...
...
src/listen.c
View file @
902cfe25
...
...
@@ -151,8 +151,9 @@ static int establishListen(unsigned int port, ConfigParam * param) {
}
if
(
bind
(
sock
,
addrp
,
addrlen
)
<
0
)
{
ERROR
(
"unable to bind port %i (for address at line %i): %s
\n
"
,
port
,
param
->
line
,
strerror
(
errno
));
ERROR
(
"unable to bind port %u"
,
port
);
if
(
param
)
ERROR
(
" (for address at line %i)"
,
param
->
line
);
ERROR
(
": %s
\n
"
,
strerror
(
errno
));
ERROR
(
"maybe MPD is still running?
\n
"
);
exit
(
EXIT_FAILURE
);
}
...
...
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