Commit d4abe04f authored by Karl Heyes's avatar Karl Heyes
Browse files

send StreamTitle in metadata when reading from intro file

svn path=/icecast/trunk/icecast/; revision=9417
parent e84ce44d
...@@ -290,10 +290,19 @@ static int send_mp3_metadata (client_t *client, refbuf_t *associated) ...@@ -290,10 +290,19 @@ static int send_mp3_metadata (client_t *client, refbuf_t *associated)
meta_len = associated->len - client_mp3->metadata_offset; meta_len = associated->len - client_mp3->metadata_offset;
} }
else else
{
if (associated)
{ {
metadata = "\0"; metadata = "\0";
meta_len = 1; 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);
if (ret == meta_len) if (ret == meta_len)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment