Permalink
Browse files

[Fix] Add missing audiochannels rule to PlayerSelectionRule.cpp. fixe…

…s #13536
  • Loading branch information...
1 parent 37e8e4e commit 2fa98c5666a52fa4ef286283acba31bc87fe5d62 @ScudLee committed Nov 14, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 xbmc/cores/playercorefactory/PlayerSelectionRule.cpp
@@ -129,6 +129,12 @@ void CPlayerSelectionRule::GetPlayers(const CFileItem& item, VECPLAYERCORES &vec
CStreamDetails streamDetails = item.GetVideoInfoTag()->m_streamDetails;
if (CompileRegExp(m_audioCodec, regExp) && !MatchesRegExp(streamDetails.GetAudioCodec(), regExp)) return;
+
+ std::stringstream itoa;
+ itoa << streamDetails.GetAudioChannels();
+ CStdString audioChannelsstr = itoa.str();
+
+ if (CompileRegExp(m_audioChannels, regExp) && !MatchesRegExp(audioChannelsstr, regExp)) return;
if (CompileRegExp(m_videoCodec, regExp) && !MatchesRegExp(streamDetails.GetVideoCodec(), regExp)) return;

0 comments on commit 2fa98c5

Please sign in to comment.