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

msmith at xiph.org msmith at xiph.org
Mon May 10 19:24:19 PDT 2004



Author: msmith
Date: 2004-05-10 22:24:18 -0400 (Mon, 10 May 2004)
New Revision: 6649

Modified:
   icecast/trunk/icecast/src/format.c
Log:
Some servers apparently send a Content-Type header of audio/x-mpeg.
Make icecast understand this.

<p><p>Modified: icecast/trunk/icecast/src/format.c
===================================================================
--- icecast/trunk/icecast/src/format.c	2004-05-11 01:57:48 UTC (rev 6648)
+++ icecast/trunk/icecast/src/format.c	2004-05-11 02:24:18 UTC (rev 6649)
@@ -55,6 +55,8 @@
         return FORMAT_TYPE_VORBIS; /* Now blessed by IANA */
     else if(strcmp(contenttype, "audio/mpeg") == 0)
         return FORMAT_TYPE_MP3; 
+    else if(strcmp(contenttype, "audio/x-mpeg") == 0)
+        return FORMAT_TYPE_MP3; /* Relay-compatibility for some servers */
     else
         return FORMAT_ERROR;
 }

--- >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