summaryrefslogtreecommitdiff
path: root/vdr.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 /vdr.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 'vdr.c')
-rw-r--r--vdr.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/vdr.c b/vdr.c
index 86144c8c..c075dbeb 100644
--- a/vdr.c
+++ b/vdr.c
@@ -22,7 +22,7 @@
*
* The project's page is at http://www.tvdr.de
*
- * $Id: vdr.c 2.36 2012/06/02 13:10:00 kls Exp $
+ * $Id: vdr.c 2.37 2012/06/13 11:28:41 kls Exp $
*/
#include <getopt.h>
@@ -570,7 +570,6 @@ int main(int argc, char *argv[])
int MaxLatencyTime = 0;
bool InhibitEpgScan = false;
bool IsInfoMenu = false;
- bool CheckHasProgramme = false;
cSkin *CurrentSkin = NULL;
// Load plugins:
@@ -761,7 +760,7 @@ int main(int argc, char *argv[])
// Make sure we have a visible programme in case device usage has changed:
if (!EITScanner.Active() && cDevice::PrimaryDevice()->HasDecoder() && !cDevice::PrimaryDevice()->HasProgramme()) {
static time_t lastTime = 0;
- if ((!Menu || CheckHasProgramme) && Now - lastTime > MINCHANNELWAIT) { // !Menu to avoid interfering with the CAM if a CAM menu is open
+ if (!CamMenuActive() && Now - lastTime > MINCHANNELWAIT) { // !CamMenuActive() to avoid interfering with the CAM if a CAM menu is open
cChannel *Channel = Channels.GetByNumber(cDevice::CurrentChannel());
if (Channel && (Channel->Vpid() || Channel->Apid(0) || Channel->Dpid(0))) {
if (cDevice::GetDeviceForTransponder(Channel, LIVEPRIORITY) && Channels.SwitchTo(Channel->Number())) // try to switch to the original channel...
@@ -774,7 +773,6 @@ int main(int argc, char *argv[])
}
lastTime = Now; // don't do this too often
LastTimerChannel = -1;
- CheckHasProgramme = false;
}
}
// Update the OSD size:
@@ -1140,7 +1138,6 @@ int main(int argc, char *argv[])
DELETE_MENU;
cControl::Shutdown();
Menu = new cMenuMain(osRecordings);
- CheckHasProgramme = true; // to have live tv after stopping replay with 'Back'
break;
case osReplay: DELETE_MENU;
cControl::Shutdown();