summaryrefslogtreecommitdiff
path: root/vdr.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2003-03-30 10:53:22 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2003-03-30 10:53:22 +0200
commit64d0ed856b6c318aa161661f77b476c15dba6592 (patch)
treee10c90f7108f9a20e73ed5bde35c6351ffed055e /vdr.c
parent0cc3bf2e6cf8e06bcb401ba213fc3b6b9bde4462 (diff)
downloadvdr-64d0ed856b6c318aa161661f77b476c15dba6592.tar.gz
vdr-64d0ed856b6c318aa161661f77b476c15dba6592.tar.bz2
Fixed faulty behaviour of the 'Mute' key in case the channel display is visible
Diffstat (limited to 'vdr.c')
-rw-r--r--vdr.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/vdr.c b/vdr.c
index 50b1a290..86becfe0 100644
--- a/vdr.c
+++ b/vdr.c
@@ -22,7 +22,7 @@
*
* The project's page is at http://www.cadsoft.de/people/kls/vdr
*
- * $Id: vdr.c 1.146 2003/03/09 14:07:46 kls Exp $
+ * $Id: vdr.c 1.147 2003/03/30 10:43:58 kls Exp $
*/
#include <getopt.h>
@@ -530,14 +530,17 @@ int main(int argc, char *argv[])
case kVolDn:
case kMute:
if (key == kMute) {
- if (!cDevice::PrimaryDevice()->ToggleMute() && !Menu)
+ if (!cDevice::PrimaryDevice()->ToggleMute() && !Menu) {
+ key = kNone; // nobody else needs to see these keys
break; // no need to display "mute off"
+ }
}
else
cDevice::PrimaryDevice()->SetVolume(NORMALKEY(key) == kVolDn ? -VOLUMEDELTA : VOLUMEDELTA);
if (!Interface->IsOpen())
Menu = Temp = cDisplayVolume::Create();
cDisplayVolume::Process(key);
+ key = kNone; // nobody else needs to see these keys
break;
// Power off:
case kPower: isyslog("Power button pressed");