From a62790ed09b1cf75e9a66821ed65c0a0f511e092 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Thu, 12 Jul 2001 14:58:48 +0200 Subject: Fixed handling of 'Green' button in 'Schedules' menu if channel as a second audio PID --- HISTORY | 2 ++ menu.c | 12 +++++++----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/HISTORY b/HISTORY index 51cf7e4d..6f10c7fe 100644 --- a/HISTORY +++ b/HISTORY @@ -548,3 +548,5 @@ Video Disk Recorder Revision History on the remote control, the channel number displayed is now followed by the '-' character to indicate that additional digits can be entered. - Increased the timeout for numeric channel switching from 500ms to 1s. +- Fixed handling the "Green" button in the "Schedules" menu for channels that + have a second audio PID. diff --git a/menu.c b/menu.c index 4dd7d445..189c9279 100644 --- a/menu.c +++ b/menu.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: menu.c 1.76 2001/07/12 14:16:43 kls Exp $ + * $Id: menu.c 1.77 2001/07/12 14:56:18 kls Exp $ */ #include "menu.h" @@ -1768,10 +1768,12 @@ eOSState cMenuMain::ProcessKey(eKeys Key) case kRed: if (!HasSubMenu()) state = osRecord; break; - case kGreen: if (cDvbApi::PrimaryDvbApi->CanToggleAudioTrack()) { - Interface->Clear(); - cDvbApi::PrimaryDvbApi->ToggleAudioTrack(); - state = osEnd; + case kGreen: if (!HasSubMenu()) { + if (cDvbApi::PrimaryDvbApi->CanToggleAudioTrack()) { + Interface->Clear(); + cDvbApi::PrimaryDvbApi->ToggleAudioTrack(); + state = osEnd; + } } break; case kBlue: if (!HasSubMenu()) -- cgit v1.2.3