Permalink
Browse files

Fix Mime parsing after 99c8594

  • Loading branch information...
1 parent 7549d92 commit ec1cf22eaeaf3379b6b53f1016e4f99c8e6774b6 @Karlson2k Karlson2k committed Jan 8, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 xbmc/utils/FileUtils.cpp
View
@@ -252,7 +252,7 @@ bool CFileUtils::parseMimeType(const std::string& mimeType, std::string& type, s
pos++; // skip '/'
t = 0;
- while (mimeTypeC[pos] && whitespaceSmclnChars.find(mimeTypeC[pos]) != std::string::npos && t++ <= 127)
+ while (mimeTypeC[pos] && whitespaceSmclnChars.find(mimeTypeC[pos]) == std::string::npos && t++ <= 127)
{
const char chr = mimeTypeC[pos];
if (chr >= 'A' && chr <= 'Z')

0 comments on commit ec1cf22

Please sign in to comment.