fix for old api
[enigma2.git] / lib / dvb / eit.cpp
index 2462d333a1d9873ffc7efe148aa03f889c2a846e..9f3169f916565d7e7436cc56158df55cb6b79cd1 100644 (file)
@@ -7,17 +7,18 @@ void eDVBServiceEITHandler::EITready(int error)
 {
        if (!error)
        {
-               ePtr<eTable<EventInformationTable> > ptr;
+               ePtr<eTable<EventInformationSection> > ptr;
                if (!m_EIT.getCurrent(ptr))
                {
                        int a = 0;
-                       for (EventInformationTableConstIterator i = ptr->getSections().begin();
+                       for (std::vector<EventInformationSection*>::const_iterator i = ptr->getSections().begin();
                                i != ptr->getSections().end(); ++i)
                        {
-                               for (EventConstIterator ev = (*i)->getEvents()->begin(); ev != (*i)->getEvents()->end(); ++ev)
+                               const EventInformationSection *eit = *i;
+                               for (EventConstIterator ev = eit->getEvents()->begin(); ev != eit->getEvents()->end(); ++ev)
                                {
                                        ePtr<eServiceEvent> evt = new eServiceEvent();
-                                       evt->parseFrom(*ev);
+                                       evt->parseFrom(*ev,(eit->getTransportStreamId()<<16)|eit->getOriginalNetworkId());
                                        if (!a)
                                                m_event_now = evt;
                                        else
@@ -41,6 +42,11 @@ void eDVBServiceEITHandler::start(iDVBDemux *demux, int sid)
        m_EIT.begin(eApp, eDVBEITSpec(sid), demux);
 }
 
+void eDVBServiceEITHandler::startOther(iDVBDemux *demux, int sid)
+{
+       m_EIT.begin(eApp, eDVBEITSpecOther(sid), demux);
+}
+
 RESULT eDVBServiceEITHandler::getEvent(ePtr<eServiceEvent> &event, int nownext)
 {
        event = nownext ? m_event_next : m_event_now;