Permalink
Browse files

Merge pull request #1784 from ScudLee/audiochannelsfix

[Fix] Add missing audiochannels rule to PlayerSelectionRule.cpp
  • Loading branch information...
2 parents 1a695c3 + 2fa98c5 commit 59437d0bd239ce4d112b1e99848390d46a43b8de Arne Morten Kvarving committed Mar 17, 2013
Showing with 6 additions and 0 deletions.
  1. +6 −0 xbmc/cores/playercorefactory/PlayerSelectionRule.cpp
@@ -131,6 +131,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 59437d0

Please sign in to comment.