summaryrefslogtreecommitdiff
path: root/menu.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2005-10-02 14:43:56 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2005-10-02 14:43:56 +0200
commit11be63aa2ce9500aa807247bf71c923ee68c7dbd (patch)
treebedd9081a476af09ceb4112926d9324d0fd15c95 /menu.c
parent969cd51b68ca69355654146536f22a2e7a68a236 (diff)
downloadvdr-11be63aa2ce9500aa807247bf71c923ee68c7dbd.tar.gz
vdr-11be63aa2ce9500aa807247bf71c923ee68c7dbd.tar.bz2
Added status message "Opening CAM menu... for an immediate feedback when the CAM menu has been requested; speeded up initial opening of the CAM menu
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/menu.c b/menu.c
index 7f32283c..a3cbda6d 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.368 2005/10/02 13:20:41 kls Exp $
+ * $Id: menu.c 1.369 2005/10/02 14:38:27 kls Exp $
*/
#include "menu.h"
@@ -34,6 +34,7 @@
#define MAXRECORDCONTROLS (MAXDEVICES * MAXRECEIVERS)
#define MAXINSTANTRECTIME (24 * 60 - 1) // 23:59 hours
+#define MAXWAITFORCAMMENU 4 // seconds to wait for the CAM menu to open
#define CHNUMWIDTH (numdigits(Channels.MaxNumber()) + 1)
@@ -2179,8 +2180,13 @@ eOSState cMenuSetupCICAM::Menu(void)
{
cMenuSetupCICAMItem *item = (cMenuSetupCICAMItem *)Get(Current());
if (item) {
- if (item->CiHandler()->EnterMenu(item->Slot()))
+ if (item->CiHandler()->EnterMenu(item->Slot())) {
+ Skins.Message(mtWarning, tr("Opening CAM menu..."));
+ time_t t = time(NULL);
+ while (time(NULL) - t < MAXWAITFORCAMMENU && !item->CiHandler()->HasUserIO())
+ item->CiHandler()->Process();
return osEnd; // the CAM menu will be executed explicitly from the main loop
+ }
else
Skins.Message(mtError, tr("Can't open CAM menu!"));
}