diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2003-05-11 08:42:57 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2003-05-11 08:42:57 +0200 |
commit | 823945204cbf8e70c36ceab03ed6be37e5345338 (patch) | |
tree | f73df324be7fc87348026b2542b86febd0efdae0 /vdr.c | |
parent | 91b51148385826769300454ad972a1623cfccb9e (diff) | |
download | vdr-823945204cbf8e70c36ceab03ed6be37e5345338.tar.gz vdr-823945204cbf8e70c36ceab03ed6be37e5345338.tar.bz2 |
Fixed keeping live video active in case the primary device doesn't have an MPEG decoder
Diffstat (limited to 'vdr.c')
-rw-r--r-- | vdr.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -22,7 +22,7 @@ * * The project's page is at http://www.cadsoft.de/people/kls/vdr * - * $Id: vdr.c 1.153 2003/05/09 14:14:13 kls Exp $ + * $Id: vdr.c 1.154 2003/05/11 08:39:09 kls Exp $ */ #include <getopt.h> @@ -469,7 +469,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()->HasProgramme()) { + if (cDevice::PrimaryDevice()->HasDecoder() && !cDevice::PrimaryDevice()->HasProgramme()) { static time_t lastTime = 0; if (time(NULL) - lastTime > MINCHANNELWAIT) { if (!Channels.SwitchTo(cDevice::CurrentChannel())) |