Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #1784 from ScudLee/audiochannelsfix

[Fix] Add missing audiochannels rule to PlayerSelectionRule.cpp
  • Loading branch information...
commit 59437d0bd239ce4d112b1e99848390d46a43b8de 2 parents 1a695c3 + 2fa98c5
Arne Morten Kvarving authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 xbmc/cores/playercorefactory/PlayerSelectionRule.cpp
View
6 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;
Please sign in to comment.
Something went wrong with that request. Please try again.