[icecast-dev] playlist problem

Paul Bryan pa_bryan at yahoo.co.uk
Sun Apr 27 05:26:48 PDT 2003


Hi, I've had a few problems with broadcasting an icecast2 playlist with peercast. The problem is that when getting the m3u file, the response isn't terminiated with a newline (\n or \r\n). peercast doesn't particularily like this. 

I've submitted a patch to peercast for this, but I wonder if icecast2 should add the \r\n to the end. Maybe there's some more buggy software around that doesn't work as well (xmms does thankfully!). Anyway, here's a patch that does the trick.

Cheers,
Paul.
-------------- next part --------------
--- ../icecast/src/connection.c.~1.69.~	2003-04-27 20:48:02.000000000 +1000
+++ ../icecast/src/connection.c	2003-04-27 22:19:33.000000000 +1000
@@ -745,7 +745,7 @@
             bytes = sock_write(client->con->sock,
                     "HTTP/1.0 200 OK\r\n"
                     "Content-Type: audio/x-mpegurl\r\n\r\n"
-                    "http://%s:%d%s", 
+                    "http://%s:%d%s\r\n", 
                     host, 
                     port,
                     sourceuri



More information about the Icecast-dev mailing list