summaryrefslogtreecommitdiff
path: root/epgsearch.c
diff options
context:
space:
mode:
authorChristian Wieninger <cwieninger (at) gmx (dot) de>2009-06-14 15:12:02 +0200
committerChristian Wieninger <cwieninger (at) gmx (dot) de>2009-06-14 15:12:02 +0200
commit85e5e7f66c4dbbebf484238e0852b7224450ae9b (patch)
tree713e66b391d2791fec8a43b18e5f1114ff338b79 /epgsearch.c
parent3b592ea06c26227308932e4568af044040860c47 (diff)
downloadvdr-plugin-epgsearch-85e5e7f66c4dbbebf484238e0852b7224450ae9b.tar.gz
vdr-plugin-epgsearch-85e5e7f66c4dbbebf484238e0852b7224450ae9b.tar.bz2
using cPlugin::MainThreadHook to trigger the first run of the background threads
Diffstat (limited to 'epgsearch.c')
-rw-r--r--epgsearch.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/epgsearch.c b/epgsearch.c
index 2117bd8..fd63219 100644
--- a/epgsearch.c
+++ b/epgsearch.c
@@ -79,6 +79,7 @@ bool isUTF8 = false;
cLogFile LogFile;
char *cLogFile::LogFileName = NULL;
int cLogFile::loglevellimit = 0;
+bool cPluginEpgsearch::VDR_readyafterStartup = false;
// external SVDRPCommand
const char *cSVDRPClient::SVDRPSendCmd = "svdrpsend.pl";
@@ -474,9 +475,14 @@ void cPluginEpgsearch::Stop(void)
cSwitchTimerThread::Exit();
}
-void cPluginEpgsearch::Housekeeping(void)
+void cPluginEpgsearch::MainThreadHook(void)
{
- // Perform any cleanup or other regular tasks.
+ if (!VDR_readyafterStartup)
+ {
+ // signal VDR is ready, otherwise the search timer thread could use SVDRP before it works
+ LogFile.Log(2, "VDR ready");
+ VDR_readyafterStartup = true;
+ }
}
cOsdObject *cPluginEpgsearch::DoInitialSearch(char* rcFilename)