#include <lib/service/event.h>
+#include <lib/base/estring.h>
#include <lib/dvb_si/eit.h>
#include <lib/dvb_si/short_event_descriptor.h>
#include <lib/dvb_si/descriptor_tag.h>
RESULT eServiceEvent::parseFrom(Event *evt)
{
m_begin = 0; // ich bin FAUL
- m_duration = evt->getDuration();
-
+ m_duration = (evt->getDuration() & 0xFF) + ((evt->getDuration() >> 8) & 0xFF) * 60 + ((evt->getDuration() >> 16) & 0xFF) * 24 * 60;
for (DescriptorConstIterator desc = evt->getDescriptors()->begin(); desc != evt->getDescriptors()->end(); ++desc)
{
case SHORT_EVENT_DESCRIPTOR:
{
const ShortEventDescriptor *sed = (ShortEventDescriptor*)*desc;
- m_event_name = sed->getEventName();
- m_description = sed->getText();
+ m_event_name = convertDVBUTF8(sed->getEventName());
+ m_description = convertDVBUTF8(sed->getText());
break;
}
}
}
+ return 0;
}
+
+DEFINE_REF(eDebugClass);