[xiph-commits] r9417 - icecast/trunk/icecast/src

karl at motherfish-iii.xiph.org karl at motherfish-iii.xiph.org
Thu Jun 9 06:05:07 PDT 2005


Author: karl
Date: 2005-06-09 06:05:02 -0700 (Thu, 09 Jun 2005)
New Revision: 9417

Modified:
   icecast/trunk/icecast/src/format_mp3.c
Log:
send StreamTitle in metadata when reading from intro file


Modified: icecast/trunk/icecast/src/format_mp3.c
===================================================================
--- icecast/trunk/icecast/src/format_mp3.c	2005-06-09 08:01:26 UTC (rev 9416)
+++ icecast/trunk/icecast/src/format_mp3.c	2005-06-09 13:05:02 UTC (rev 9417)
@@ -291,8 +291,17 @@
     }
     else
     {
-        metadata = "\0";
-        meta_len = 1;
+        if (associated)
+        {
+            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);
 



More information about the commits mailing list