1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-09-22 04:15:54 -04:00

Feature: Include content-type in mount info for metadata updates

This commit is contained in:
Philipp Schafft 2020-10-01 14:56:18 +00:00
parent 6294a832a0
commit c6bb70d99b

View File

@ -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,