Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

…s #13536
  • Loading branch information...
commit 2fa98c5666a52fa4ef286283acba31bc87fe5d62 1 parent 37e8e4e
ScudLee authored

Showing 1 changed file with 6 additions and 0 deletions. Show diff stats Hide diff stats

  1. +6 0 xbmc/cores/playercorefactory/PlayerSelectionRule.cpp
6 xbmc/cores/playercorefactory/PlayerSelectionRule.cpp
@@ -129,6 +129,12 @@ void CPlayerSelectionRule::GetPlayers(const CFileItem& item, VECPLAYERCORES &vec
129 129 CStreamDetails streamDetails = item.GetVideoInfoTag()->m_streamDetails;
130 130
131 131 if (CompileRegExp(m_audioCodec, regExp) && !MatchesRegExp(streamDetails.GetAudioCodec(), regExp)) return;
  132 +
  133 + std::stringstream itoa;
  134 + itoa << streamDetails.GetAudioChannels();
  135 + CStdString audioChannelsstr = itoa.str();
  136 +
  137 + if (CompileRegExp(m_audioChannels, regExp) && !MatchesRegExp(audioChannelsstr, regExp)) return;
132 138
133 139 if (CompileRegExp(m_videoCodec, regExp) && !MatchesRegExp(streamDetails.GetVideoCodec(), regExp)) return;
134 140

0 comments on commit 2fa98c5

Please sign in to comment.
Something went wrong with that request. Please try again.