summaryrefslogtreecommitdiff
path: root/vdr.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2005-08-21 08:56:49 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2005-08-21 08:56:49 +0200
commit6de23d7d96720f89cbc864bbf504fe466e224497 (patch)
treee0fa92f9f0d7816cfd0eef3507f069758d053300 /vdr.c
parentba3437f7ccbc86f67b8cbfc5a88cc6c3b4fd6ed9 (diff)
downloadvdr-6de23d7d96720f89cbc864bbf504fe466e224497.tar.gz
vdr-6de23d7d96720f89cbc864bbf504fe466e224497.tar.bz2
Now waiting at startup until all DVB devices are ready
Diffstat (limited to 'vdr.c')
-rw-r--r--vdr.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/vdr.c b/vdr.c
index c8f57a2b..c98ee0d6 100644
--- a/vdr.c
+++ b/vdr.c
@@ -22,7 +22,7 @@
*
* The project's page is at http://www.cadsoft.de/vdr
*
- * $Id: vdr.c 1.210 2005/08/20 11:24:42 kls Exp $
+ * $Id: vdr.c 1.211 2005/08/21 08:47:06 kls Exp $
*/
#include <getopt.h>
@@ -65,6 +65,7 @@
#define CHANNELSAVEDELTA 600 // seconds before saving channels.conf after automatic modifications
#define LASTCAMMENUTIMEOUT 3 // seconds to run the main loop 'fast' after a CAM menu has been closed
// in order to react on a possible new CAM menu as soon as possible
+#define DEVICEREADYTIMEOUT 30 // seconds to wait until all devices are ready
#define EXIT(v) { ExitCode = (v); goto Exit; }
@@ -520,6 +521,8 @@ int main(int argc, char *argv[])
// Channel:
+ if (!cDevice::WaitForAllDevicesReady(DEVICEREADYTIMEOUT))
+ dsyslog("not all devices ready after %d seconds", DEVICEREADYTIMEOUT);
Channels.SwitchTo(Setup.CurrentChannel);
if (MuteAudio)
cDevice::PrimaryDevice()->ToggleMute();