From ba94b7f69d191eb314238041ce8517adef210337 Mon Sep 17 00:00:00 2001 From: ulion Date: Wed, 30 Jan 2013 15:15:20 +0800 Subject: [fix] detect wav codec by mimetype --- xbmc/cores/paplayer/CodecFactory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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... -- cgit v1.2.3