diff options
author | horchi <vdr@jwendel.de> | 2017-03-19 12:01:51 +0100 |
---|---|---|
committer | horchi <vdr@jwendel.de> | 2017-03-19 12:01:51 +0100 |
commit | 9bcc41bef9f18e4ec0d65a9dc9f72af05591790e (patch) | |
tree | 672e1fbd25d798ad6818ae87e7bda3d531c3aa23 | |
parent | d0249c8207351fb978b0bcd090c491443960a33b (diff) | |
download | vdr-plugin-epg2vdr-9bcc41bef9f18e4ec0d65a9dc9f72af05591790e.tar.gz vdr-plugin-epg2vdr-9bcc41bef9f18e4ec0d65a9dc9f72af05591790e.tar.bz2 |
minor change
-rw-r--r-- | epg2vdr.c | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -802,7 +802,7 @@ cString cPluginEPG2VDR::SVDRPCommand(const char* cmd, const char* Option, int &R bool cPluginEPG2VDR::Service(const char* id, void* data) { - if (!data || !pluginInitialized) + if (!data) return fail; tell(4, "Service called with '%s', %d/%d", id, @@ -832,7 +832,13 @@ bool cPluginEPG2VDR::Service(const char* id, void* data) return true; } - else if (strcmp(id, "MainMenuHooksPatch-v1.0::osSchedule") == 0 && Epg2VdrConfig.replaceScheduleMenu) + if (!pluginInitialized) + { + tell(2, "Service called but plugin not redy, retry later"); + return fail; + } + + if (strcmp(id, "MainMenuHooksPatch-v1.0::osSchedule") == 0 && Epg2VdrConfig.replaceScheduleMenu) { cOsdMenu** menu = (cOsdMenu**)data; |