Skip to content

Commit

Permalink
Add missing audiochannels rule to PlayerSelectionRule.cpp. fixes #13536
Browse files Browse the repository at this point in the history
  • Loading branch information
ScudLee authored and davilla committed Mar 17, 2013
1 parent 8c2fb31 commit 3994d2a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions xbmc/cores/playercorefactory/PlayerSelectionRule.cpp
Expand Up @@ -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;

Expand Down

0 comments on commit 3994d2a

Please sign in to comment.