diff options
Diffstat (limited to 'libsi/section.c')
-rw-r--r-- | libsi/section.c | 24 |
1 files changed, 3 insertions, 21 deletions
diff --git a/libsi/section.c b/libsi/section.c index 6abbb232..0de2a573 100644 --- a/libsi/section.c +++ b/libsi/section.c @@ -6,6 +6,8 @@ * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * + * $Id: section.c 1.2 2003/12/13 10:42:14 kls Exp $ + * * ***************************************************************************/ #include "section.h" @@ -74,8 +76,6 @@ void PMT::Stream::Parse() { streamDescriptors.setData(data+offset, HILO(s->ES_info_length)); } - - /*********************** NIT ***********************/ int NIT::getNetworkId() const { @@ -105,11 +105,8 @@ void NIT::TransportStream::Parse() { transportStreamDescriptors.setData(data+offset, HILO(s->transport_descriptors_length)); } - - /*********************** SDT ***********************/ - void SDT::Parse() { unsigned int offset=0; data.setPointerAndOffset<const sdt>(s, offset); @@ -150,8 +147,6 @@ void SDT::Service::Parse() { serviceDescriptors.setData(data+offset, HILO(s->descriptors_loop_length)); } - - /*********************** EIT ***********************/ int EIT::getServiceId() const { @@ -167,7 +162,7 @@ int EIT::getOriginalNetworkId() const { } bool EIT::isPresentFollowing() const { - return getTableId() == TableIdEIT_presentFollowing || getTableId() == TableIdEIT_presentFollowing_other; + return getTableId() == TableIdEIT_presentFollowing || getTableId() == TableIdEIT_presentFollowing_other; } bool EIT::isActualTS() const { @@ -183,7 +178,6 @@ void EIT::Parse() { eventLoop.setData(data+offset, getLength()-offset-4); //4 is for CRC } - time_t EIT::Event::getStartTime() const { return DVBTime::getTime(s->mjd_hi, s->mjd_lo, s->start_time_h, s->start_time_m, s->start_time_s); } @@ -239,7 +233,6 @@ void EIT::Event::Parse() { eventDescriptors.setData(data+offset, HILO(s->descriptors_loop_length)); } - /*********************** TDT ***********************/ time_t TDT::getTime() const { @@ -250,7 +243,6 @@ void TDT::Parse() { s=data.getData<const tdt>(); } - /*********************** TOT ***********************/ time_t TOT::getTime() const { @@ -263,9 +255,6 @@ void TOT::Parse() { descriptorLoop.setData(data+offset, getLength()-offset-4); } - - - /*********************** RST ***********************/ void RST::Parse() { @@ -299,11 +288,8 @@ void RST::RunningInfo::Parse() { s=data.getData<const rst_info>(); } - - /*********************** AIT ***********************/ - int AIT::getApplicationType() const { return HILO(first->application_type); } @@ -321,7 +307,6 @@ void AIT::Parse() { applicationLoop.setData(data+offset, HILO(mid->application_loop_length)); } - long AIT::Application::getOrganisationId() const { return data.FourBytes(0); } @@ -340,7 +325,4 @@ void AIT::Application::Parse() { applicationDescriptors.setData(data+offset, HILO(s->application_descriptors_length)); } - - } //end of namespace - |