mirror of
https://github.com/vdr-projects/vdr.git
synced 2025-03-01 10:50:46 +00:00
Added subtable ID and TSDT handling to 'libsi'
This commit is contained in:
@@ -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.2 2003/12/13 10:42:14 kls Exp $
|
||||
* $Id: section.c 1.3 2004/02/20 13:44:59 kls Exp $
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
@@ -76,6 +76,14 @@ void PMT::Stream::Parse() {
|
||||
streamDescriptors.setData(data+offset, HILO(s->ES_info_length));
|
||||
}
|
||||
|
||||
/*********************** TSDT ***********************/
|
||||
|
||||
void TSDT::Parse() {
|
||||
unsigned int offset=0;
|
||||
data.setPointerAndOffset<const tsdt>(s, offset);
|
||||
transportStreamDescriptors.setDataAndOffset(data+offset, getLength()-offset-4, offset);
|
||||
}
|
||||
|
||||
/*********************** NIT ***********************/
|
||||
|
||||
int NIT::getNetworkId() const {
|
||||
@@ -161,6 +169,14 @@ int EIT::getOriginalNetworkId() const {
|
||||
return HILO(s->original_network_id);
|
||||
}
|
||||
|
||||
int EIT::getSegmentLastSectionNumber() const {
|
||||
return s->segment_last_section_number;
|
||||
}
|
||||
|
||||
int EIT::getLastTableId() const {
|
||||
return s->last_table_id;
|
||||
}
|
||||
|
||||
bool EIT::isPresentFollowing() const {
|
||||
return getTableId() == TableIdEIT_presentFollowing || getTableId() == TableIdEIT_presentFollowing_other;
|
||||
}
|
||||
|
Reference in New Issue
Block a user