Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: [BUG] mp3-plugin and shoutcast-streams with pathes



> who can create a diff file to fix this bug??

Hi, try this patch

Roland

--- stream-orig.c       2003-04-01 13:45:57.000000000 +0200
+++ stream.c    2003-07-07 14:57:03.000000000 +0200
@@ -285,7 +285,7 @@
 bool cNetStream::ParseURL(const char *line, bool log)
 {
   char pr[32], h[512], p[512];
-  int r=sscanf(line," %31[^:]://%511[^/]%511[^\n]",pr,h,p);
+  int r=sscanf(line," %31[^:]://%511[^/]%511[^\r\n]",pr,h,p); // for
DOS/Windows editors
   if(r==2) {
     d(printf("netstream: adding default path '/'\n"))
     strcpy(p,"/");
@@ -336,11 +336,11 @@
   else asprintf(&p,"%s",path);

   snprintf(buff,sizeof(buff),
-           "GET %s HTTP/1.0\n"
-           "User-Agent: %s/%s\n"
-           "Host: %s\n"
-           "Accept: audio/mpeg\n"   //XXX audio/x-mpegurl, */*
-           "\n",
+           "GET %s HTTP/1.0\r\n"
+           "User-Agent: %s/%s\r\n"
+           "Host: %s\r\n"
+           "Accept: audio/mpeg\r\n"   //XXX audio/x-mpegurl, */*
+           "\r\n",
            p,PLUGIN_NAME,PLUGIN_VERSION,h);
   free(p); free(h);



-- 
Info:
To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe vdr" as subject.



Home | Main Index | Thread Index