summaryrefslogtreecommitdiffstats
path: root/gst/mpegtsparse/mpegtspacketizer.h
diff options
context:
space:
mode:
authorZaheer Abbas Merali <zaheerabbas@merali.org>2008-04-29 09:02:35 +0000
committerZaheer Abbas Merali <zaheerabbas@merali.org>2008-04-29 09:02:35 +0000
commit63fae1c4bb8b0f2d317bd39c71cc77a319224c7a (patch)
tree79ae1a2a504cc5d65253a2e2927f6abe8aae572c /gst/mpegtsparse/mpegtspacketizer.h
parent625a222f06d943aba5bbb14456bce9d2944ea827 (diff)
downloadgst-plugins-bad-63fae1c4bb8b0f2d317bd39c71cc77a319224c7a.tar.gz
gst-plugins-bad-63fae1c4bb8b0f2d317bd39c71cc77a319224c7a.tar.bz2
gst-plugins-bad-63fae1c4bb8b0f2d317bd39c71cc77a319224c7a.zip
gst/mpegtsparse/: Detect SI pids (NIT, SDT, EIT etc.) based on table id and not by pid number. This allows for exampl...
Original commit message from CVS: * gst/mpegtsparse/mpegtspacketizer.c: * gst/mpegtsparse/mpegtspacketizer.h: * gst/mpegtsparse/mpegtsparse.c: Detect SI pids (NIT, SDT, EIT etc.) based on table id and not by pid number. This allows for example the EPG data from UK's freesat to be picked up.
Diffstat (limited to 'gst/mpegtsparse/mpegtspacketizer.h')
-rw-r--r--gst/mpegtsparse/mpegtspacketizer.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/gst/mpegtsparse/mpegtspacketizer.h b/gst/mpegtsparse/mpegtspacketizer.h
index f156ce5f..c54228af 100644
--- a/gst/mpegtsparse/mpegtspacketizer.h
+++ b/gst/mpegtsparse/mpegtspacketizer.h
@@ -85,6 +85,26 @@ typedef struct
guint8 current_next_indicator;
} MpegTSPacketizerSection;
+typedef struct
+{
+ guint8 table_id;
+ /* the spec says sub_table_extension is the fourth and fifth byte of a
+ * section when the section_syntax_indicator is set to a value of "1". If
+ * section_syntax_indicator is 0, sub_table_extension will be set to 0 */
+ guint16 subtable_extension;
+ guint8 version_number;
+} MpegTSPacketizerStreamSubtable;
+
+typedef struct
+{
+ guint continuity_counter;
+ GstAdapter *section_adapter;
+ guint8 section_table_id;
+ guint section_length;
+ GSList *subtables;
+} MpegTSPacketizerStream;
+
+
GType gst_mpegts_packetizer_get_type(void);
void mpegts_packetizer_init_debug ();