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

send StreamTitle in metadata when reading from intro file

svn path=/icecast/trunk/icecast/; revision=9417
This commit is contained in:
Karl Heyes 2005-06-09 13:05:02 +00:00
parent e84ce44d6c
commit d4abe04f9f

View File

@ -291,8 +291,17 @@ static int send_mp3_metadata (client_t *client, refbuf_t *associated)
} }
else else
{ {
metadata = "\0"; if (associated)
meta_len = 1; {
metadata = "\0";
meta_len = 1;
}
else
{
char *meta = "\001StreamTitle='';";
metadata = meta + client_mp3->metadata_offset;
meta_len = 17 - client_mp3->metadata_offset;
}
} }
ret = client_send_bytes (client, metadata, meta_len); ret = client_send_bytes (client, metadata, meta_len);