Skip to content

Commit

Permalink
TV: Ummute sound if volume is adjusted.
Browse files Browse the repository at this point in the history
This avoids potential confusion if the sound is muted and changing the
volume then does nothing - leading the user to think there is a problem
with the sound. An entirely un-scientific survey of 3 TVs and a couple
of STBs seems to suggest this is more or less standard behaviour.
  • Loading branch information
Mark Kendall committed Sep 29, 2011
1 parent 8f19c1f commit 2063783
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mythtv/libs/libmythtv/tv_play.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7776,6 +7776,9 @@ void TV::ChangeVolume(PlayerContext *ctx, bool up)
return;
}

if (ctx->player->IsMuted())
ToggleMute(ctx);

uint curvol = ctx->player->AdjustVolume((up) ? +2 : -2);
ctx->UnlockDeletePlayer(__FILE__, __LINE__);

Expand Down

0 comments on commit 2063783

Please sign in to comment.