mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2024-12-04 14:46:30 -05:00
Feature: Include content-type in mount info for metadata updates
This commit is contained in:
parent
6294a832a0
commit
c6bb70d99b
@ -1238,6 +1238,9 @@ static void command_updatemetadata(client_t *client,
|
||||
node = admin_build_rootnode(doc, "icestats");
|
||||
srcnode = xmlNewChild(node, NULL, XMLSTR("source"), NULL);
|
||||
xmlSetProp(srcnode, XMLSTR("mount"), XMLSTR(source->mount));
|
||||
if (source->running) {
|
||||
xmlNewTextChild(srcnode, NULL, XMLSTR("content-type"), XMLSTR(source->format->contenttype));
|
||||
}
|
||||
xmlDocSetRootElement(doc, node);
|
||||
|
||||
admin_send_response(doc, client, response,
|
||||
|
Loading…
Reference in New Issue
Block a user