summaryrefslogtreecommitdiff
path: root/vdr.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2003-05-24 13:38:28 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2003-05-24 13:38:28 +0200
commite26e6b2e5a68be5c98364cc57f097d659edee9e8 (patch)
tree3c7509e9bc5151355cd41f8d5597412e8833f807 /vdr.c
parent755835ce4439a182519a91855b84f97631561ce1 (diff)
downloadvdr-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.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/vdr.c b/vdr.c
index afb6d01e..b2052551 100644
--- a/vdr.c
+++ b/vdr.c
@@ -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()))