summaryrefslogtreecommitdiff
path: root/menu.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2012-06-13 11:35:16 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2012-06-13 11:35:16 +0200
commit2a18fb96871fea40a190c4f6f7f6273bc6767f65 (patch)
tree62738a6adff2f18a9192ca65cc02c216e6858c25 /menu.c
parenta8dc76a8ac203e4e2365fd1101a26fc521b17625 (diff)
downloadvdr-2a18fb96871fea40a190c4f6f7f6273bc6767f65.tar.gz
vdr-2a18fb96871fea40a190c4f6f7f6273bc6767f65.tar.bz2
Fixed checking for a visible live programme in case a menu or the channel display is currently open
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/menu.c b/menu.c
index 45316fa7..c3ea64e0 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 2.55 2012/06/09 14:27:02 kls Exp $
+ * $Id: menu.c 2.56 2012/06/13 11:24:40 kls Exp $
*/
#include "menu.h"
@@ -1888,6 +1888,8 @@ eOSState cMenuCommands::ProcessKey(eKeys Key)
// --- cMenuCam --------------------------------------------------------------
+static bool CamMenuIsOpen = false;
+
class cMenuCam : public cOsdMenu {
private:
cCamSlot *camSlot;
@@ -1919,6 +1921,7 @@ cMenuCam::cMenuCam(cCamSlot *CamSlot)
lastCamExchange = time(NULL);
SetNeedsFastResponse(true);
QueryCam();
+ CamMenuIsOpen = true;
}
cMenuCam::~cMenuCam()
@@ -1930,6 +1933,7 @@ cMenuCam::~cMenuCam()
ciEnquiry->Abort();
delete ciEnquiry;
free(input);
+ CamMenuIsOpen = false;
}
void cMenuCam::GenerateTitle(const char *s)
@@ -2075,6 +2079,11 @@ cOsdObject *CamControl(void)
return NULL;
}
+bool CamMenuActive(void)
+{
+ return CamMenuIsOpen;
+}
+
// --- cMenuRecording --------------------------------------------------------
class cMenuRecording : public cOsdMenu {