eServiceEvent: parse PDC descriptor
[openblackhole/openblackhole-enigma2.git] / lib / service / event.cpp
index 660cefe..8f3335f 100644 (file)
@@ -11,6 +11,7 @@
 #include <dvbsi++/content_descriptor.h>
 #include <dvbsi++/parental_rating_descriptor.h>
 #include <dvbsi++/descriptor_tag.h>
+#include <dvbsi++/pdc_descriptor.h>
 
 #include <sys/types.h>
 #include <fcntl.h>
@@ -161,6 +162,12 @@ bool eServiceEvent::loadLanguage(Event *evt, const std::string &lang, int tsidon
                                        }
                                        break;
                                }
+                               case PDC_DESCRIPTOR:
+                               {
+                                       const PdcDescriptor *pdcd = (PdcDescriptor *)*desc;
+                                       m_pdc_pil = pdcd->getProgrammeIdentificationLabel();
+                                       break;
+                               }
                        }
                }
        }