mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2025-02-02 15:07:36 -05:00
Config: Rename mp3-metadata-interval to icy-metadata-interval
As proposed in #2272, this renames the mount specific mp3-metadata-interval to icy-metadata-interval to prevent confusion about what it does (setting the icy metadata interval) and to make clear it's not mp3 specific but ICY specific.
This commit is contained in:
parent
4345060c02
commit
4117a2d2e2
@ -1328,6 +1328,15 @@ static void _parse_mount(xmlDocPtr doc,
|
||||
mount->charset = (char *)xmlNodeListGetString(doc,
|
||||
node->xmlChildrenNode, 1);
|
||||
} else if (xmlStrcmp(node->name, XMLSTR("mp3-metadata-interval")) == 0) {
|
||||
ICECAST_LOG_WARN("<mp3-metadata-interval> is deprecated and will be "
|
||||
"removed in a future version. "
|
||||
"Please use <icy-metadata-interval> instead.");
|
||||
/* FIXME when do we plan to remove this? */
|
||||
tmp = (char *)xmlNodeListGetString(doc, node->xmlChildrenNode, 1);
|
||||
mount->mp3_meta_interval = atoi(tmp);
|
||||
if(tmp)
|
||||
xmlFree(tmp);
|
||||
} else if (xmlStrcmp(node->name, XMLSTR("icy-metadata-interval")) == 0) {
|
||||
tmp = (char *)xmlNodeListGetString(doc, node->xmlChildrenNode, 1);
|
||||
mount->mp3_meta_interval = atoi(tmp);
|
||||
if(tmp)
|
||||
|
Loading…
Reference in New Issue
Block a user