Fixed handling of 'Green' button in 'Schedules' menu if channel as a second audio PID

This commit is contained in:
Klaus Schmidinger 2001-07-12 14:58:48 +02:00
parent 145d376ec1
commit a62790ed09
2 changed files with 9 additions and 5 deletions

View File

@ -548,3 +548,5 @@ Video Disk Recorder Revision History
on the remote control, the channel number displayed is now followed by the on the remote control, the channel number displayed is now followed by the
'-' character to indicate that additional digits can be entered. '-' character to indicate that additional digits can be entered.
- Increased the timeout for numeric channel switching from 500ms to 1s. - 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.

6
menu.c
View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and * See the main source file 'vdr.c' for copyright information and
* how to reach the author. * 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" #include "menu.h"
@ -1768,11 +1768,13 @@ eOSState cMenuMain::ProcessKey(eKeys Key)
case kRed: if (!HasSubMenu()) case kRed: if (!HasSubMenu())
state = osRecord; state = osRecord;
break; break;
case kGreen: if (cDvbApi::PrimaryDvbApi->CanToggleAudioTrack()) { case kGreen: if (!HasSubMenu()) {
if (cDvbApi::PrimaryDvbApi->CanToggleAudioTrack()) {
Interface->Clear(); Interface->Clear();
cDvbApi::PrimaryDvbApi->ToggleAudioTrack(); cDvbApi::PrimaryDvbApi->ToggleAudioTrack();
state = osEnd; state = osEnd;
} }
}
break; break;
case kBlue: if (!HasSubMenu()) case kBlue: if (!HasSubMenu())
state = osReplay; state = osReplay;