mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2025-02-02 15:07:36 -05:00
the check for the public stream flag wasn't working correctly in all cases
svn path=/icecast/trunk/icecast/; revision=8100
This commit is contained in:
parent
1531b5a4c6
commit
82c116a72d
13
src/source.c
13
src/source.c
@ -494,15 +494,18 @@ static void source_init (source_t *source)
|
|||||||
config->hostname, config->port, source->mount);
|
config->hostname, config->port, source->mount);
|
||||||
config_release_config();
|
config_release_config();
|
||||||
|
|
||||||
/* maybe better in connection.c */
|
do
|
||||||
|
{
|
||||||
if ((str = httpp_getvar(source->parser, "ice-public")))
|
if ((str = httpp_getvar(source->parser, "ice-public")))
|
||||||
source->yp_public = atoi(str);
|
break;
|
||||||
if ((str = httpp_getvar(source->parser, "icy-pub")))
|
if ((str = httpp_getvar(source->parser, "icy-pub")))
|
||||||
source->yp_public = atoi(str);
|
break;
|
||||||
|
/* handle header from icecast v2 release */
|
||||||
if ((str = httpp_getvar(source->parser, "icy-public")))
|
if ((str = httpp_getvar(source->parser, "icy-public")))
|
||||||
source->yp_public = atoi(str);
|
break;
|
||||||
if (str == NULL)
|
|
||||||
str = "0";
|
str = "0";
|
||||||
|
} while (0);
|
||||||
|
source->yp_public = atoi (str);
|
||||||
stats_event (source->mount, "public", str);
|
stats_event (source->mount, "public", str);
|
||||||
|
|
||||||
str = httpp_getvar(source->parser, "ice-audio-info");
|
str = httpp_getvar(source->parser, "ice-audio-info");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user