diff options
author | horchi <vdr@jwendel.de> | 2019-10-29 14:50:09 +0100 |
---|---|---|
committer | horchi <vdr@jwendel.de> | 2019-10-29 14:50:09 +0100 |
commit | eaaaa7bbef546c987364cf83e6432f007e643787 (patch) | |
tree | 473ec5ae24e01baf688265f4fd4588a1b0b9282b /update.h | |
parent | 39245fef79ce67be42832d57869d7342b95667e9 (diff) | |
download | vdr-plugin-epg2vdr-1.1.100.tar.gz vdr-plugin-epg2vdr-1.1.100.tar.bz2 |
2019-10-29 version 1.1.100 (horchi)\n - bugfix: Added patch to fix potentially cras at end of recording (thaks to kfb77@vdr-portal)\n\n1.1.100
Diffstat (limited to 'update.h')
-rw-r--r-- | update.h | 20 |
1 files changed, 15 insertions, 5 deletions
@@ -24,6 +24,10 @@ #define EPGDNAME "epgd" +#if defined(APIVERSNUM) && APIVERSNUM < 20304 +#error "VDR-2.3.4 API version or greater is required!" +#endif + //*************************************************************************** // Running Recording //*************************************************************************** @@ -34,7 +38,12 @@ class cRunningRecording : public cListObject cRunningRecording(const cTimer* t, long did = na) { - timer = t; + id = t->Id(); + + if (remote) + free(remote); + + remote = t->Remote() ? strdup(t->Remote()) : nullptr; doneid = did; lastBreak = 0; info = 0; @@ -44,7 +53,7 @@ class cRunningRecording : public cListObject // copy until timer get waste .. - aux = strdup(timer->Aux() ? timer->Aux() : ""); + aux = strdup(t->Aux() ? t->Aux() : ""); } ~cRunningRecording() @@ -57,13 +66,14 @@ class cRunningRecording : public cListObject // data - const cTimer* timer; // #TODO, it's may be fatal to hold a pointer to a timer! + int id = 0; // use timer->Id(), timer->Remote and GetById instead of pointer to a timer + char* remote {nullptr}; time_t lastBreak; int finished; int failed; long doneid; - char* aux; - char* info; + char* aux {nullptr}; + char* info {nullptr}; }; //*************************************************************************** |