equal
deleted
inserted
replaced
47 #endif |
47 #endif |
48 |
48 |
49 #define PMT_SCAN_TIMEOUT 10 // seconds |
49 #define PMT_SCAN_TIMEOUT 10 // seconds |
50 #define PMT_SCAN_IDLE 300 // seconds |
50 #define PMT_SCAN_IDLE 300 // seconds |
51 |
51 |
52 static const char *VERSION = "0.0.4"; |
52 static const char *VERSION = "0.0.5"; |
53 static const char *DESCRIPTION = "Parses extended Premiere EPG data"; |
53 static const char *DESCRIPTION = "Parses extended Premiere EPG data"; |
54 |
54 |
55 // --- cSetupPremiereEpg ------------------------------------------------------- |
55 // --- cSetupPremiereEpg ------------------------------------------------------- |
56 |
56 |
57 const char *optPats[] = { |
57 const char *optPats[] = { |
398 time_t CIT::getDuration(void) const { |
398 time_t CIT::getDuration(void) const { |
399 return DVBTime::getDuration(s->duration_h,s->duration_m,s->duration_s); |
399 return DVBTime::getDuration(s->duration_h,s->duration_m,s->duration_s); |
400 } |
400 } |
401 |
401 |
402 void CIT::Parse(void) { |
402 void CIT::Parse(void) { |
|
403 #if VDRVERSNUM >= 10343 |
|
404 int offset=0; |
|
405 #else |
403 unsigned int offset=0; |
406 unsigned int offset=0; |
|
407 #endif |
404 data.setPointerAndOffset<const cit>(s, offset); |
408 data.setPointerAndOffset<const cit>(s, offset); |
405 eventDescriptors.setData(data+offset,HILO(s->descriptors_loop_length)); |
409 eventDescriptors.setData(data+offset,HILO(s->descriptors_loop_length)); |
406 } |
410 } |
407 |
411 |
408 } // end of namespace |
412 } // end of namespace |
754 if(order) strcat(buffer,order); |
758 if(order) strcat(buffer,order); |
755 pEvent->SetDescription(buffer); |
759 pEvent->SetDescription(buffer); |
756 } |
760 } |
757 |
761 |
758 if(newEvent) pSchedule->AddEvent(pEvent); |
762 if(newEvent) pSchedule->AddEvent(pEvent); |
|
763 #if VDRVERSNUM >= 10318 |
759 pEvent->SetComponents(NULL); |
764 pEvent->SetComponents(NULL); |
|
765 #endif |
760 pEvent->FixEpgBugs(); |
766 pEvent->FixEpgBugs(); |
761 Modified=true; |
767 Modified=true; |
762 } |
768 } |
763 if(Modified) { |
769 if(Modified) { |
764 pSchedule->Sort(); |
770 pSchedule->Sort(); |