[xiph-cvs] r6614 - icecast/trunk/icecast/src

oddsock at xiph.org oddsock at xiph.org
Tue May 4 21:30:47 PDT 2004



Author: oddsock
Date: 2004-05-03 10:55:44 -0400 (Mon, 03 May 2004)
New Revision: 6614

Modified:
   icecast/trunk/icecast/src/format.c
Log:
patch to allow public listing of shoutcast servers that are relaying icecast streams

<p>Modified: icecast/trunk/icecast/src/format.c
===================================================================
--- icecast/trunk/icecast/src/format.c	2004-04-30 17:45:59 UTC (rev 6613)
+++ icecast/trunk/icecast/src/format.c	2004-05-03 14:55:44 UTC (rev 6614)
@@ -150,8 +150,12 @@
                     if (!strcasecmp("ice-bitrate", var->name))
                         bytes += sock_write(client->con->sock, "icy-br:%s\r\n", var->value);
                     else
-                        bytes = sock_write(client->con->sock, "icy%s:%s\r\n",
-                            var->name + 3, var->value);
+                        if (!strcasecmp("ice-public", var->name))
+                            bytes += sock_write(client->con->sock, 
+                                "icy-pub:%s\r\n", var->value);
+                        else
+                            bytes = sock_write(client->con->sock, "icy%s:%s\r\n",
+                                var->name + 3, var->value);
                             
                 }
                 if (!strncasecmp("icy-", var->name, 4))

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list