Mercurial > mplayer.hg
changeset 12477:1550ef7117c4
Add detection of nsa streamed by aol ultravox server
author | rtognimp |
---|---|
date | Fri, 14 May 2004 23:10:43 +0000 |
parents | 131b6c682863 |
children | 7f8eb5f6814a |
files | libmpdemux/extension.c libmpdemux/network.c |
diffstat | 2 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/extension.c Fri May 14 21:16:00 2004 +0000 +++ b/libmpdemux/extension.c Fri May 14 23:10:43 2004 +0000 @@ -49,7 +49,8 @@ { "mid", DEMUXER_TYPE_XMMS }, { "midi", DEMUXER_TYPE_XMMS }, { "vqf", DEMUXER_TYPE_XMMS }, - { "nsv", DEMUXER_TYPE_NSV } + { "nsv", DEMUXER_TYPE_NSV }, + { "nsa", DEMUXER_TYPE_NSV } }; int demuxer_type_by_filename(char* filename){
--- a/libmpdemux/network.c Fri May 14 21:16:00 2004 +0000 +++ b/libmpdemux/network.c Fri May 14 23:10:43 2004 +0000 @@ -94,7 +94,8 @@ // OGG Streaming { "application/x-ogg", DEMUXER_TYPE_OGG }, // NullSoft Streaming Video - { "video/nsv", DEMUXER_TYPE_NSV} + { "video/nsv", DEMUXER_TYPE_NSV}, + { "misc/ultravox", DEMUXER_TYPE_NSV} }; @@ -769,7 +770,7 @@ // If content-type == video/nsv we most likely have a winamp video stream // otherwise it should be mp3. if there are more types consider adding mime type // handling like later - if ( (field_data = http_get_field(http_hdr, "content-type")) != NULL && !strcmp(field_data, "video/nsv")) + if ( (field_data = http_get_field(http_hdr, "content-type")) != NULL && (!strcmp(field_data, "video/nsv") || !strcmp(field_data, "misc/ultravox"))) *file_format = DEMUXER_TYPE_NSV; else *file_format = DEMUXER_TYPE_AUDIO;