Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…s #13536
  • Loading branch information...
commit 2fa98c5666a52fa4ef286283acba31bc87fe5d62 1 parent 37e8e4e
@ScudLee ScudLee authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 xbmc/cores/playercorefactory/PlayerSelectionRule.cpp
View
6 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;
Please sign in to comment.
Something went wrong with that request. Please try again.