Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #3383 from arnova/no_volamp_with_passthrough

changed: Don't allow change of volume amplification with passthrough
  • Loading branch information...
commit 3a1813dd8d83d984c505545cd8ae5ba5484f9716 2 parents 31ec980 + eef3f52
arnova arnova authored
Showing with 10 additions and 0 deletions.
  1. +10 −0 xbmc/video/PlayerController.cpp
10 xbmc/video/PlayerController.cpp
View
@@ -361,6 +361,16 @@ bool CPlayerController::OnAction(const CAction &action)
case ACTION_VOLAMP_UP:
case ACTION_VOLAMP_DOWN:
{
+ // Don't allow change with passthrough audio
+ if (g_application.m_pPlayer->IsPassthrough())
+ {
+ CGUIDialogKaiToast::QueueNotification(CGUIDialogKaiToast::Warning,
+ g_localizeStrings.Get(660),
+ g_localizeStrings.Get(29802),
+ TOAST_DISPLAY_TIME, false);
+ return false;
+ }
+
float sliderMax = VOLUME_DRC_MAXIMUM / 100.0f;
float sliderMin = VOLUME_DRC_MINIMUM / 100.0f;
Please sign in to comment.
Something went wrong with that request. Please try again.