diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2012-06-13 11:35:16 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2012-06-13 11:35:16 +0200 |
commit | 2a18fb96871fea40a190c4f6f7f6273bc6767f65 (patch) | |
tree | 62738a6adff2f18a9192ca65cc02c216e6858c25 /menu.c | |
parent | a8dc76a8ac203e4e2365fd1101a26fc521b17625 (diff) | |
download | vdr-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.c | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -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 { |