Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #2588 from ace20022/fix_PlayerSelectionRule

[Fix] PlayerSelectionRule GetPlayers()
  • Loading branch information...
commit eff81e8c5c32ae94855f07d1ab1856b47c5d8a5c 2 parents 15fd923 + 81aea9b
davilla davilla authored
Showing with 9 additions and 9 deletions.
  1. +9 −9 xbmc/cores/playercorefactory/PlayerSelectionRule.cpp
18 xbmc/cores/playercorefactory/PlayerSelectionRule.cpp
View
@@ -108,15 +108,15 @@ void CPlayerSelectionRule::GetPlayers(const CFileItem& item, VECPLAYERCORES &vec
CLog::Log(LOGDEBUG, "CPlayerSelectionRule::GetPlayers: considering rule: %s", m_name.c_str());
if (m_bStreamDetails && !item.HasVideoInfoTag()) return;
- if ((m_tAudio > 0) != item.IsAudio()) return;
- if ((m_tVideo > 0) != item.IsVideo()) return;
- if ((m_tInternetStream > 0) != item.IsInternetStream()) return;
- if ((m_tRemote > 0) != item.IsRemote()) return;
-
- if ((m_tBD > 0) != (item.IsBDFile() && item.IsOnDVD())) return;
- if ((m_tDVD > 0) != item.IsDVD()) return;
- if ((m_tDVDFile > 0) != item.IsDVDFile()) return;
- if ((m_tDVDImage > 0) != item.IsDVDImage()) return;
+ if (m_tAudio >= 0 && (m_tAudio > 0) != item.IsAudio()) return;
+ if (m_tVideo >= 0 && (m_tVideo > 0) != item.IsVideo()) return;
+ if (m_tInternetStream >= 0 && (m_tInternetStream > 0) != item.IsInternetStream()) return;
+ if (m_tRemote >= 0 && (m_tRemote > 0) != item.IsRemote()) return;
+
+ if (m_tBD >= 0 && (m_tBD > 0) != (item.IsBDFile() && item.IsOnDVD())) return;
+ if (m_tDVD >= 0 && (m_tDVD > 0) != item.IsDVD()) return;
+ if (m_tDVDFile >= 0 && (m_tDVDFile > 0) != item.IsDVDFile()) return;
+ if (m_tDVDImage >= 0 && (m_tDVDImage > 0) != item.IsDVDImage()) return;
CRegExp regExp;
Please sign in to comment.
Something went wrong with that request. Please try again.