Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xiph.Org
Icecast-Server
Commits
82c116a7
Commit
82c116a7
authored
Oct 25, 2004
by
Karl Heyes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
the check for the public stream flag wasn't working correctly in all cases
svn path=/icecast/trunk/icecast/; revision=8100
parent
1531b5a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
9 deletions
+12
-9
src/source.c
src/source.c
+12
-9
No files found.
src/source.c
View file @
82c116a7
...
...
@@ -494,15 +494,18 @@ static void source_init (source_t *source)
config
->
hostname
,
config
->
port
,
source
->
mount
);
config_release_config
();
/* maybe better in connection.c */
if
((
str
=
httpp_getvar
(
source
->
parser
,
"ice-public"
)))
source
->
yp_public
=
atoi
(
str
);
if
((
str
=
httpp_getvar
(
source
->
parser
,
"icy-pub"
)))
source
->
yp_public
=
atoi
(
str
);
if
((
str
=
httpp_getvar
(
source
->
parser
,
"icy-public"
)))
source
->
yp_public
=
atoi
(
str
);
if
(
str
==
NULL
)
str
=
"0"
;
do
{
if
((
str
=
httpp_getvar
(
source
->
parser
,
"ice-public"
)))
break
;
if
((
str
=
httpp_getvar
(
source
->
parser
,
"icy-pub"
)))
break
;
/* handle header from icecast v2 release */
if
((
str
=
httpp_getvar
(
source
->
parser
,
"icy-public"
)))
break
;
str
=
"0"
;
}
while
(
0
);
source
->
yp_public
=
atoi
(
str
);
stats_event
(
source
->
mount
,
"public"
,
str
);
str
=
httpp_getvar
(
source
->
parser
,
"ice-audio-info"
);
...
...
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