summaryrefslogtreecommitdiff
path: root/menu.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2007-02-25 14:14:06 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2007-02-25 14:14:06 +0100
commit16fe4d783f2c5e34f18a329b542624e211e13e72 (patch)
tree2e88340b3cd87fda61b88ff659a1ec90a5e671ea /menu.c
parent197d3762e49dc864abe95626c9c40dc6acd0a1f7 (diff)
downloadvdr-16fe4d783f2c5e34f18a329b542624e211e13e72.tar.gz
vdr-16fe4d783f2c5e34f18a329b542624e211e13e72.tar.bz2
Made "Channel entry timeout" a setup parameter1.5.1
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/menu.c b/menu.c
index c89a3198..9e76ebed 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.449 2007/02/25 11:28:09 kls Exp $
+ * $Id: menu.c 1.450 2007/02/25 14:04:33 kls Exp $
*/
#include "menu.h"
@@ -2662,6 +2662,7 @@ cMenuSetupMisc::cMenuSetupMisc(void)
Add(new cMenuEditIntItem( tr("Setup.Miscellaneous$Min. user inactivity (min)"), &data.MinUserInactivity));
Add(new cMenuEditIntItem( tr("Setup.Miscellaneous$SVDRP timeout (s)"), &data.SVDRPTimeout));
Add(new cMenuEditIntItem( tr("Setup.Miscellaneous$Zap timeout (s)"), &data.ZapTimeout));
+ Add(new cMenuEditIntItem( tr("Setup.Miscellaneous$Channel entry timeout (ms)"), &data.ChannelEntryTimeout, 0));
Add(new cMenuEditChanItem(tr("Setup.Miscellaneous$Initial channel"), &data.InitialChannel, tr("Setup.Miscellaneous$as before")));
Add(new cMenuEditIntItem( tr("Setup.Miscellaneous$Initial volume"), &data.InitialVolume, -1, 255, tr("Setup.Miscellaneous$as before")));
}
@@ -3089,8 +3090,6 @@ static void SetTrackDescriptions(int LiveChannel)
// --- cDisplayChannel -------------------------------------------------------
-#define DIRECTCHANNELTIMEOUT 1000 //ms
-
cDisplayChannel *cDisplayChannel::currentDisplayChannel = NULL;
cDisplayChannel::cDisplayChannel(int Number, bool Switched)
@@ -3289,7 +3288,7 @@ eOSState cDisplayChannel::ProcessKey(eKeys Key)
Refresh();
break;
case kNone:
- if (number && lastTime.Elapsed() > DIRECTCHANNELTIMEOUT) {
+ if (number && Setup.ChannelEntryTimeout && int(lastTime.Elapsed()) > Setup.ChannelEntryTimeout) {
channel = Channels.GetByNumber(number);
if (channel)
NewChannel = channel;