premiereepg.c
branchtrunk
changeset 8 b5bd55cfd28f
parent 6 b0218bef406f
child 10 967afc97e51d
     1.1 --- a/premiereepg.c	Sat Dec 29 11:19:23 2007 +0100
     1.2 +++ b/premiereepg.c	Sat Dec 29 11:19:35 2007 +0100
     1.3 @@ -49,7 +49,7 @@
     1.4  #define PMT_SCAN_TIMEOUT  10  // seconds
     1.5  #define PMT_SCAN_IDLE     300 // seconds
     1.6  
     1.7 -static const char *VERSION        = "0.0.4";
     1.8 +static const char *VERSION        = "0.0.5";
     1.9  static const char *DESCRIPTION    = "Parses extended Premiere EPG data";
    1.10  
    1.11  // --- cSetupPremiereEpg -------------------------------------------------------
    1.12 @@ -400,7 +400,11 @@
    1.13  }
    1.14  
    1.15  void CIT::Parse(void) {
    1.16 +#if VDRVERSNUM >= 10343
    1.17 +   int offset=0;
    1.18 +#else
    1.19     unsigned int offset=0;
    1.20 +#endif
    1.21     data.setPointerAndOffset<const cit>(s, offset);
    1.22     eventDescriptors.setData(data+offset,HILO(s->descriptors_loop_length));
    1.23  }
    1.24 @@ -756,7 +760,9 @@
    1.25                  }
    1.26  
    1.27                if(newEvent) pSchedule->AddEvent(pEvent);
    1.28 +#if VDRVERSNUM >= 10318
    1.29                pEvent->SetComponents(NULL);
    1.30 +#endif
    1.31                pEvent->FixEpgBugs();
    1.32                Modified=true;
    1.33                }