diff options
author | horchi <vdr@jwendel.de> | 2017-03-19 12:16:15 +0100 |
---|---|---|
committer | horchi <vdr@jwendel.de> | 2017-03-19 12:16:15 +0100 |
commit | 7b6f2a4d5dd2fc60b6f50d6f3c8b36ce732f6365 (patch) | |
tree | c601aa884e953af3018472facc8e605695b48e6b | |
parent | 9bcc41bef9f18e4ec0d65a9dc9f72af05591790e (diff) | |
download | vdr-plugin-epg2vdr-7b6f2a4d5dd2fc60b6f50d6f3c8b36ce732f6365.tar.gz vdr-plugin-epg2vdr-7b6f2a4d5dd2fc60b6f50d6f3c8b36ce732f6365.tar.bz2 |
minor change
-rw-r--r-- | epg2vdr.c | 6 | ||||
-rw-r--r-- | epg2vdr.h | 3 |
2 files changed, 5 insertions, 4 deletions
@@ -834,7 +834,7 @@ bool cPluginEPG2VDR::Service(const char* id, void* data) if (!pluginInitialized) { - tell(2, "Service called but plugin not redy, retry later"); + tell(2, "Service called but plugin not ready, retry later"); return fail; } @@ -858,7 +858,9 @@ bool cPluginEPG2VDR::Service(const char* id, void* data) return true; } - else if (strcmp(id, EPG2VDR_TIMER_SERVICE) == 0) + cMutexLock lock(&mutexServiceWithDb); + + if (strcmp(id, EPG2VDR_TIMER_SERVICE) == 0) { cEpgTimer_Service_V1* ts = (cEpgTimer_Service_V1*)data; @@ -32,8 +32,6 @@ static const char* MAINMENUENTRY = tr("EPG and Timer Service"); // cPluginEPG2VDR //*************************************************************************** -// cOsdMenu* newWathsOn(); - class cPluginEPG2VDR : public cPlugin { public: @@ -78,6 +76,7 @@ class cPluginEPG2VDR : public cPlugin cDbStatement* selectTimers; cDbStatement* selectEventById; cMutex mutexTimerService; + cMutex mutexServiceWithDb; }; //*************************************************************************** |