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:
parent
205d225b73
commit
e21a3fc19e
@ -1,3 +1,4 @@
|
|||||||
|
/* -*- c-basic-offset: 4; -*- */
|
||||||
/* format.c
|
/* format.c
|
||||||
**
|
**
|
||||||
** format plugin implementation
|
** format plugin implementation
|
||||||
@ -111,6 +112,10 @@ void format_send_general_headers(format_plugin_t *format,
|
|||||||
strcasecmp(var->name, "icy-metaint") &&
|
strcasecmp(var->name, "icy-metaint") &&
|
||||||
(!strncasecmp("ice-", var->name, 4) ||
|
(!strncasecmp("ice-", var->name, 4) ||
|
||||||
!strncasecmp("icy-", 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,
|
bytes = sock_write(client->con->sock,
|
||||||
"%s: %s\r\n", var->name, var->value);
|
"%s: %s\r\n", var->name, var->value);
|
||||||
if(bytes > 0) client->con->sent_bytes += bytes;
|
if(bytes > 0) client->con->sent_bytes += bytes;
|
||||||
|
Loading…
Reference in New Issue
Block a user