diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2006-04-14 10:59:03 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2006-04-14 10:59:03 +0200 |
commit | f3feda52cd6d4bce31e62bb727d43ec258b3f64b (patch) | |
tree | df02880efc7182d1d7453f65a65ea7d7a9f1b1c8 /libsi/section.c | |
parent | 90affbed3527d1e0028cdb7ee2d7ca6adb0649f0 (diff) | |
download | vdr-f3feda52cd6d4bce31e62bb727d43ec258b3f64b.tar.gz vdr-f3feda52cd6d4bce31e62bb727d43ec258b3f64b.tar.bz2 |
Added VBITeletextDescriptorTag, TeletextDescriptorTag, LocalTimeOffsetDescriptorTag and PremiereContentTransmissionDescriptor to 'libsi'
Diffstat (limited to 'libsi/section.c')
-rw-r--r-- | libsi/section.c | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/libsi/section.c b/libsi/section.c index 68af9918..6dd43df7 100644 --- a/libsi/section.c +++ b/libsi/section.c @@ -6,7 +6,7 @@ * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * - * $Id: section.c 1.4 2006/02/18 10:38:20 kls Exp $ + * $Id: section.c 1.5 2006/04/14 10:53:44 kls Exp $ * * ***************************************************************************/ @@ -341,4 +341,20 @@ void AIT::Application::Parse() { applicationDescriptors.setData(data+offset, HILO(s->application_descriptors_length)); } +/******************* PremiereCIT *******************/ + +void PremiereCIT::Parse() { + int offset=0; + data.setPointerAndOffset<const pcit>(s, offset); + eventDescriptors.setData(data+offset, HILO(s->descriptors_loop_length)); +} + +int PremiereCIT::getContentId() const { + return (HILO(s->contentId_hi) << 16) | HILO(s->contentId_lo); +} + +time_t PremiereCIT::getDuration() const { + return DVBTime::getDuration(s->duration_h, s->duration_m, s->duration_s); +} + } //end of namespace |