Skip to content
This repository
Browse code

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
Joakim Plate authored February 03, 2013

Showing 1 changed file with 3 additions and 1 deletion. Show diff stats Hide diff stats

  1. 4  xbmc/cores/paplayer/CodecFactory.cpp
4  xbmc/cores/paplayer/CodecFactory.cpp
@@ -135,6 +135,8 @@ ICodec* CodecFactory::CreateCodecDemux(const CStdString& strFile, const CStdStri
135 135
   }
136 136
   else if( strContent.Equals("audio/x-ms-wma") )
137 137
     return new DVDPlayerCodec();
  138
+  else if( strContent.Equals("audio/x-ape") || strContent.Equals("audio/ape") )
  139
+    return new DVDPlayerCodec();
138 140
   else if( strContent.Equals("application/ogg") || strContent.Equals("audio/ogg"))
139 141
     return CreateOGGCodec(strFile,filecache);
140 142
   else if (strContent.Equals("audio/x-xbmc-pcm"))
@@ -153,7 +155,7 @@ ICodec* CodecFactory::CreateCodecDemux(const CStdString& strFile, const CStdStri
153 155
     return new MP3Codec(); // if we got this far with internet radio - content-type was wrong. gamble on mp3.
154 156
   }
155 157
 
156  
-  if (urlFile.GetFileType().Equals("wav"))
  158
+  if (urlFile.GetFileType().Equals("wav") || strContent.Equals("audio/wav") || strContent.Equals("audio/x-wav"))
157 159
   {
158 160
     ICodec* codec;
159 161
     //lets see what it contains...

0 notes on commit 351c81e

Please sign in to comment.
Something went wrong with that request. Please try again.