Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[Fix] PlayerSelectionRule GetPlayers().

This partially reverts commit e575a7f
[Cores] Remove redundant predicates in conditions.
  • Loading branch information...
commit 81aea9b19c853695dac8f4ced0569adfdf57c24e 1 parent c1413ad
@ace20022 ace20022 authored
Showing with 9 additions and 9 deletions.
  1. +9 −9 xbmc/cores/playercorefactory/PlayerSelectionRule.cpp
View
18 xbmc/cores/playercorefactory/PlayerSelectionRule.cpp
@@ -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.