X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/e677ac4a7bf81391877c909a703e5918ce4a511b..a81eab44ddc3d7faad43f8434d04f3c55b81b880:/lib/service/event.cpp diff --git a/lib/service/event.cpp b/lib/service/event.cpp index 7ea16560..482527cc 100644 --- a/lib/service/event.cpp +++ b/lib/service/event.cpp @@ -1,4 +1,5 @@ #include +#include #include #include #include @@ -8,8 +9,7 @@ DEFINE_REF(eServiceEvent); 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) { @@ -18,10 +18,13 @@ RESULT eServiceEvent::parseFrom(Event *evt) 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);