1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2025-02-02 15:07:36 -05:00

Convert ice headers to icy headers for MP3 streams.

TODO: rewrite ice-audio-info bitrate tag to icy-br.

svn path=/trunk/icecast/; revision=5045
This commit is contained in:
brendan 2003-07-03 01:39:59 +00:00
parent 205d225b73
commit e21a3fc19e

View File

@ -1,3 +1,4 @@
/* -*- c-basic-offset: 4; -*- */
/* format.c
**
** format plugin implementation
@ -111,6 +112,10 @@ void format_send_general_headers(format_plugin_t *format,
strcasecmp(var->name, "icy-metaint") &&
(!strncasecmp("ice-", var->name, 4) ||
!strncasecmp("icy-", var->name, 4))) {
if (source->format->type == FORMAT_TYPE_MP3)
bytes = sock_write(client->con->sock, "icy%s:%s\r\n",
var->name + 3, var->value);
else
bytes = sock_write(client->con->sock,
"%s: %s\r\n", var->name, var->value);
if(bytes > 0) client->con->sent_bytes += bytes;