diff options
author | horchi <vdr@jwendel.de> | 2017-12-21 18:02:38 +0100 |
---|---|---|
committer | horchi <vdr@jwendel.de> | 2017-12-21 18:02:38 +0100 |
commit | 6c5b1d1729ddec6b4815e5f4115544e0c9f47ac3 (patch) | |
tree | 07ee8c7dbfeb6b74519a7ae376885012fd9df99d /epg2vdr.c | |
parent | fc626c15ac0e98aeec57f92c0b5aa6072a752e2f (diff) | |
download | vdr-plugin-epg2vdr-1.1.76.tar.gz vdr-plugin-epg2vdr-1.1.76.tar.bz2 |
2017-12-21 version 1.1.76 (horchi)\n - change: backward compatibility to vdr 2.2.0 - second try\n - change: g++ 7 porting\n\n1.1.76
Diffstat (limited to 'epg2vdr.c')
-rw-r--r-- | epg2vdr.c | 20 |
1 files changed, 9 insertions, 11 deletions
@@ -814,7 +814,7 @@ cString cPluginEPG2VDR::SVDRPCommand(const char* cmd, const char* Option, int &R bool cPluginEPG2VDR::Service(const char* id, void* data) { if (!data) - return fail; + return false; tell(4, "Service called with '%s', %d/%d", id, Epg2VdrConfig.replaceScheduleMenu, Epg2VdrConfig.replaceTimerMenu); @@ -846,7 +846,7 @@ bool cPluginEPG2VDR::Service(const char* id, void* data) if (!pluginInitialized) { tell(2, "Service called but plugin not ready, retry later"); - return fail; + return false; } if (strcmp(id, "MainMenuHooksPatch-v1.0::osSchedule") == 0 && Epg2VdrConfig.replaceScheduleMenu) @@ -886,14 +886,10 @@ bool cPluginEPG2VDR::Service(const char* id, void* data) } else if (strcmp(id, EPG2VDR_REC_DETAIL_SERVICE) == 0) { -#if defined (APIVERSNUM) && (APIVERSNUM >= 20301) cEpgRecording_Details_Service_V1* rd = (cEpgRecording_Details_Service_V1*)data; if (rd) return recordingDetails(rd); -#else - return false; -#endif } exitDb(); @@ -943,17 +939,16 @@ int cPluginEPG2VDR::timerService(cEpgTimer_Service_V1* ts) int cPluginEPG2VDR::recordingDetails(cEpgRecording_Details_Service_V1* rd) { + int found = false; + +#if defined (APIVERSNUM) && (APIVERSNUM >= 20301) const char* videoBasePath = cVideoDirectory::Name(); md5Buf md5path; const cRecording* recording; int pathOffset = 0; -#if defined (APIVERSNUM) && (APIVERSNUM >= 20301) LOCK_RECORDINGS_READ; const cRecordings* recordings = Recordings; -#else - const cRecordings* recordings = &Recordings; -#endif if (!(recording = recordings->GetById(rd->id))) return false; @@ -975,7 +970,8 @@ int cPluginEPG2VDR::recordingDetails(cEpgRecording_Details_Service_V1* rd) recordingListDb->setValue("OWNER", Epg2VdrConfig.useCommonRecFolder ? "" : Epg2VdrConfig.uuid); cXml xml; - int found = recordingListDb->find(); + + found = recordingListDb->find(); xml.create("epg2vdr"); @@ -986,6 +982,8 @@ int cPluginEPG2VDR::recordingDetails(cEpgRecording_Details_Service_V1* rd) recordingListDb->reset(); +#endif + return found; } |