diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2003-05-24 13:38:28 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2003-05-24 13:38:28 +0200 |
commit | e26e6b2e5a68be5c98364cc57f097d659edee9e8 (patch) | |
tree | 3c7509e9bc5151355cd41f8d5597412e8833f807 /vdr.c | |
parent | 755835ce4439a182519a91855b84f97631561ce1 (diff) | |
download | vdr-e26e6b2e5a68be5c98364cc57f097d659edee9e8.tar.gz vdr-e26e6b2e5a68be5c98364cc57f097d659edee9e8.tar.bz2 |
Fixed channel switching in the EPG scanner on single device systems
Diffstat (limited to 'vdr.c')
-rw-r--r-- | vdr.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -22,7 +22,7 @@ * * The project's page is at http://www.cadsoft.de/people/kls/vdr * - * $Id: vdr.c 1.157 2003/05/24 12:11:43 kls Exp $ + * $Id: vdr.c 1.158 2003/05/24 13:35:13 kls Exp $ */ #include <getopt.h> @@ -430,8 +430,6 @@ int main(int argc, char *argv[]) else cDevice::PrimaryDevice()->SetVolume(Setup.CurrentVolume, true); - cEITScanner EITScanner; - cSIProcessor::Read(); // Signal handlers: @@ -470,7 +468,7 @@ int main(int argc, char *argv[]) // Attach launched player control: cControl::Attach(); // Make sure we have a visible programme in case device usage has changed: - if (cDevice::PrimaryDevice()->HasDecoder() && !cDevice::PrimaryDevice()->HasProgramme()) { + if (!EITScanner.Active() && cDevice::PrimaryDevice()->HasDecoder() && !cDevice::PrimaryDevice()->HasProgramme()) { static time_t lastTime = 0; if (time(NULL) - lastTime > MINCHANNELWAIT) { if (!Channels.SwitchTo(cDevice::CurrentChannel())) |