diff options
author | Zaheer Abbas Merali <zaheerabbas@merali.org> | 2008-04-29 09:02:35 +0000 |
---|---|---|
committer | Zaheer Abbas Merali <zaheerabbas@merali.org> | 2008-04-29 09:02:35 +0000 |
commit | 63fae1c4bb8b0f2d317bd39c71cc77a319224c7a (patch) | |
tree | 79ae1a2a504cc5d65253a2e2927f6abe8aae572c /gst/mpegtsparse/mpegtspacketizer.h | |
parent | 625a222f06d943aba5bbb14456bce9d2944ea827 (diff) | |
download | gst-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.h | 20 |
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 (); |