summaryrefslogtreecommitdiff
path: root/libsi/section.c
diff options
context:
space:
mode:
Diffstat (limited to 'libsi/section.c')
-rw-r--r--libsi/section.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/libsi/section.c b/libsi/section.c
index 68af991..6dd43df 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