Permalink
Browse files

Merge pull request #2204 from arnova/remote_player_selection

changed: Add rule for selecting remote (or non-local) items for player s...
  • Loading branch information...
2 parents 5ec933e + d114678 commit caf72373746f044ad4f3f4a5eb1d7e63a3ee25e5 @arnova arnova committed Mar 1, 2013
@@ -44,6 +44,7 @@ void CPlayerSelectionRule::Initialize(TiXmlElement* pRule)
CLog::Log(LOGDEBUG, "CPlayerSelectionRule::Initialize: creating rule: %s", m_name.c_str());
m_tInternetStream = GetTristate(pRule->Attribute("internetstream"));
+ m_tRemote = GetTristate(pRule->Attribute("remote"));
m_tAudio = GetTristate(pRule->Attribute("audio"));
m_tVideo = GetTristate(pRule->Attribute("video"));
@@ -110,6 +111,7 @@ void CPlayerSelectionRule::GetPlayers(const CFileItem& item, VECPLAYERCORES &vec
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;
@@ -47,6 +47,7 @@ class CPlayerSelectionRule
int m_tAudio;
int m_tVideo;
int m_tInternetStream;
+ int m_tRemote;
int m_tBD;
int m_tDVD;

0 comments on commit caf7237

Please sign in to comment.