gst/mpegtsparse/mpegtspacketizer.c: Add flag to both sdt and nit structures to say...
authorZaheer Abbas Merali <zaheerabbas@merali.org>
Tue, 5 Feb 2008 11:40:43 +0000 (11:40 +0000)
committerZaheer Abbas Merali <zaheerabbas@merali.org>
Tue, 5 Feb 2008 11:40:43 +0000 (11:40 +0000)
Original commit message from CVS:
* gst/mpegtsparse/mpegtspacketizer.c:
Add flag to both sdt and nit structures to say
whether the table is for the actual network/ts
or not.

ChangeLog
gst/mpegtsparse/mpegtspacketizer.c

index eb665c03b99c047ca974cc3cae5d8b60ccbcf206..14c36708addc46108caf41246ba381a5c9476550 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2008-02-05  Zaheer Abbas Merali  <zaheerabbas at merali dot org>
+
+       * gst/mpegtsparse/mpegtspacketizer.c:
+       Add flag to both sdt and nit structures to say
+       whether the table is for the actual network/ts
+       or not.
+
 2008-02-05  Wim Taymans  <wim.taymans@collabora.co.uk>
 
        Patch by: Josep Torre Valles <josep@fluendo.com>
index 4be21dc1b25094e356fbde9cfc6f891bc058cf89..78b7d487f556a15d10fc5ec2b74a4b2c6660efa0 100644 (file)
@@ -596,7 +596,7 @@ mpegts_packetizer_parse_nit (MpegTSPacketizer * packetizer,
       "network-id", G_TYPE_UINT, network_id,
       "version-number", G_TYPE_UINT, section->version_number,
       "current-next-indicator", G_TYPE_UINT, section->current_next_indicator,
-      NULL);
+      "actual-network", G_TYPE_BOOLEAN, section->table_id == 0x40, NULL);
 
   /* see if the buffer is large enough */
   if (descriptors_loop_length) {
@@ -1069,7 +1069,9 @@ mpegts_packetizer_parse_sdt (MpegTSPacketizer * packetizer,
       "transport-stream-id", G_TYPE_UINT, transport_stream_id,
       "version-number", G_TYPE_UINT, section->version_number,
       "current-next-indicator", G_TYPE_UINT, section->current_next_indicator,
-      "original-network-id", G_TYPE_UINT, original_network_id, NULL);
+      "original-network-id", G_TYPE_UINT, original_network_id,
+      "actual-transport-stream", G_TYPE_BOOLEAN, section->table_id == 0x42,
+      NULL);
 
   sdt_info_length = section->section_length - 8;
   g_value_init (&services, GST_TYPE_LIST);