diff options
author | mrwastl <mrwastl@users.sourceforge.net> | 2011-05-12 18:04:46 +0200 |
---|---|---|
committer | mrwastl <mrwastl@users.sourceforge.net> | 2011-05-12 18:04:46 +0200 |
commit | e2428993faf06591e881f06893abad3e85ac6ef5 (patch) | |
tree | 0dddfe36ecd462198914eee5687c6cad375ecaf2 /plugin.c | |
parent | bf66319a3d84105a113e8e6d034ef4d07a49b3a4 (diff) | |
download | vdr-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.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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() |