comparison libmpdemux/http.c @ 16948:9b7925705f5b

Add another content-type for aac audio in shoutcast streams Fixes http://www.digitallyimported.com/aacplus/goapsy.pls
author rtognimp
date Tue, 08 Nov 2005 22:07:53 +0000
parents c30e0970250c
children f580a7755ac5
comparison
equal deleted inserted replaced
16947:622e75e0991b 16948:9b7925705f5b
766 // If content-type == video/nsv we most likely have a winamp video stream 766 // If content-type == video/nsv we most likely have a winamp video stream
767 // otherwise it should be mp3. if there are more types consider adding mime type 767 // otherwise it should be mp3. if there are more types consider adding mime type
768 // handling like later 768 // handling like later
769 if ( (field_data = http_get_field(http_hdr, "content-type")) != NULL && (!strcmp(field_data, "video/nsv") || !strcmp(field_data, "misc/ultravox"))) 769 if ( (field_data = http_get_field(http_hdr, "content-type")) != NULL && (!strcmp(field_data, "video/nsv") || !strcmp(field_data, "misc/ultravox")))
770 *file_format = DEMUXER_TYPE_NSV; 770 *file_format = DEMUXER_TYPE_NSV;
771 else if ( (field_data = http_get_field(http_hdr, "content-type")) != NULL && (!strcmp(field_data, "audio/aacp"))) 771 else if ( (field_data = http_get_field(http_hdr, "content-type")) != NULL && (!strcmp(field_data, "audio/aacp") || !strcmp(field_data, "audio/aac")))
772 *file_format = DEMUXER_TYPE_AAC; 772 *file_format = DEMUXER_TYPE_AAC;
773 else 773 else
774 *file_format = DEMUXER_TYPE_AUDIO; 774 *file_format = DEMUXER_TYPE_AUDIO;
775 return 0; 775 return 0;
776 } 776 }