From e2428993faf06591e881f06893abad3e85ac6ef5 Mon Sep 17 00:00:00 2001 From: mrwastl Date: Thu, 12 May 2011 18:04:46 +0200 Subject: wait for 10 secs until display is initialised. if it fails: stop graphlcd plugin so that VDR will not restart --- plugin.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/plugin.c b/plugin.c index a200034..ce5b60c 100644 --- a/plugin.c +++ b/plugin.c @@ -203,7 +203,7 @@ bool cPluginGraphLCD::Start() int count; dsyslog("graphlcd plugin: waiting for display thread to get ready"); - for (count = 0; count < 1200; count++) + for (count = 0; count < 100 /*1200*/; count++) { if (mDisplay->Active()) { @@ -213,7 +213,10 @@ bool cPluginGraphLCD::Start() cCondWait::SleepMs(100); } dsyslog ("graphlcd plugin: timeout while waiting for display thread"); - return false; + /* no activity after 10 secs: display is unusable */ + GraphLCDSetup.PluginActive = 0; + /* don't return false, else VDR would restart itself */ + return true /*false*/; } void cPluginGraphLCD::Housekeeping() -- cgit v1.2.3