summaryrefslogtreecommitdiff
path: root/plugin.c
diff options
context:
space:
mode:
authormrwastl <mrwastl@users.sourceforge.net>2011-05-12 18:04:46 +0200
committermrwastl <mrwastl@users.sourceforge.net>2011-05-12 18:04:46 +0200
commite2428993faf06591e881f06893abad3e85ac6ef5 (patch)
tree0dddfe36ecd462198914eee5687c6cad375ecaf2 /plugin.c
parentbf66319a3d84105a113e8e6d034ef4d07a49b3a4 (diff)
downloadvdr-plugin-graphlcd-e2428993faf06591e881f06893abad3e85ac6ef5.tar.gz
vdr-plugin-graphlcd-e2428993faf06591e881f06893abad3e85ac6ef5.tar.bz2
wait for 10 secs until display is initialised. if it fails: stop graphlcd plugin so that VDR will not restart
Diffstat (limited to 'plugin.c')
-rw-r--r--plugin.c7
1 files 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()