Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #2140 from ulion/wav_codec_mimetype_detect

[fix] detect wav codec by mimetype
  • Loading branch information...
commit 351c81eaa68195c869104d3cdf2f3154d762c220 2 parents 4039edb + 1ba3174
@elupus elupus authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 xbmc/cores/paplayer/CodecFactory.cpp
View
4 xbmc/cores/paplayer/CodecFactory.cpp
@@ -135,6 +135,8 @@ ICodec* CodecFactory::CreateCodecDemux(const CStdString& strFile, const CStdStri
}
else if( strContent.Equals("audio/x-ms-wma") )
return new DVDPlayerCodec();
+ else if( strContent.Equals("audio/x-ape") || strContent.Equals("audio/ape") )
+ return new DVDPlayerCodec();
else if( strContent.Equals("application/ogg") || strContent.Equals("audio/ogg"))
return CreateOGGCodec(strFile,filecache);
else if (strContent.Equals("audio/x-xbmc-pcm"))
@@ -153,7 +155,7 @@ ICodec* CodecFactory::CreateCodecDemux(const CStdString& strFile, const CStdStri
return new MP3Codec(); // if we got this far with internet radio - content-type was wrong. gamble on mp3.
}
- if (urlFile.GetFileType().Equals("wav"))
+ if (urlFile.GetFileType().Equals("wav") || strContent.Equals("audio/wav") || strContent.Equals("audio/x-wav"))
{
ICodec* codec;
//lets see what it contains...
Please sign in to comment.
Something went wrong with that request. Please try again.