diff options
author | ulion <ulion2002@gmail.com> | 2013-01-30 15:15:20 +0800 |
---|---|---|
committer | S. Davilla <davilla@4pi.com> | 2013-02-25 12:56:59 -0500 |
commit | ba94b7f69d191eb314238041ce8517adef210337 (patch) | |
tree | 14a7623f752246cf874b0bb0908866ff3dcb5e82 | |
parent | 2784c9e3fd2f51c7c529e58f32be373f972e1f6a (diff) |
[fix] detect wav codec by mimetype
-rw-r--r-- | xbmc/cores/paplayer/CodecFactory.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xbmc/cores/paplayer/CodecFactory.cpp b/xbmc/cores/paplayer/CodecFactory.cpp index f1ce58034f..6ab00b5bdd 100644 --- a/xbmc/cores/paplayer/CodecFactory.cpp +++ b/xbmc/cores/paplayer/CodecFactory.cpp @@ -153,7 +153,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... |