diff options
author | andreas 'randy' weinberger <vdr@smue.org> | 2011-01-23 21:14:23 +0100 |
---|---|---|
committer | andreas 'randy' weinberger <vdr@smue.org> | 2011-01-23 21:14:23 +0100 |
commit | 8a131ac2cd9418b18e5239a8fbdc2f18a5885fe4 (patch) | |
tree | 919684386fd512394de78adf9b144e79b1d796fe /plugin.c | |
parent | 32e068775c30cf3aae5ff5ccf952dd1c04a88041 (diff) | |
download | vdr-plugin-graphlcd-8a131ac2cd9418b18e5239a8fbdc2f18a5885fe4.tar.gz vdr-plugin-graphlcd-8a131ac2cd9418b18e5239a8fbdc2f18a5885fe4.tar.bz2 |
feature: display menu entries for span only if the plugin is loaded
Diffstat (limited to 'plugin.c')
-rw-r--r-- | plugin.c | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -177,6 +177,19 @@ bool cPluginGraphLCD::Start() { int count; + for (int i = 0; ; i++) { + cPlugin *p = cPluginManager::GetPlugin(i); + if (p) { + if (strstr(p->Name(), "span")) { + isyslog("graphlcd plugin: found %s (%s) plugin\n", p->Name(), p->Version()); + GraphLCDSetup.pluginSpectrumAnalyzer=1; + }; + } else { + break; + } + } + + dsyslog("graphlcd plugin: waiting for display thread to get ready"); for (count = 0; count < 1200; count++) { |