diff options
author | Edward Hervey <edward@collabora.com> | 2013-07-04 07:45:12 +0200 |
---|---|---|
committer | Edward Hervey <edward@collabora.com> | 2013-07-04 08:45:32 +0200 |
commit | 4fe26740c77ad874b387e506fd4497225a6bf1d8 (patch) | |
tree | 10b00dee6f29c501504a5f380b77516f194df8e8 /tests | |
parent | 8babffc750f1d084ae8e64e0d10d5bccbf88647e (diff) | |
download | gstreamer-plugins-bad-4fe26740c77ad874b387e506fd4497225a6bf1d8.tar.gz |
mpegts: Add registered mpeg-ts stream types
These are the values officially registered in the base specification
(H.222.0/13818-1). Later on we can add other enums for other variants
Note that the enum is not used in the structure fields (such as a pmt
stream stream_type field) since it can contain values from other
variants.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/examples/mpegts/ts-parser.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/examples/mpegts/ts-parser.c b/tests/examples/mpegts/ts-parser.c index db422b3d8..19989e156 100644 --- a/tests/examples/mpegts/ts-parser.c +++ b/tests/examples/mpegts/ts-parser.c @@ -221,8 +221,9 @@ dump_pmt (GstMpegTsSection * section) g_printf (" %d Streams:\n", len); for (i = 0; i < len; i++) { GstMpegTsPMTStream *stream = g_ptr_array_index (pmt->streams, i); - g_printf (" pid:0x%04x , stream_type:0x%02x\n", stream->pid, - stream->stream_type); + g_printf (" pid:0x%04x , stream_type:0x%02x (%s)\n", stream->pid, + stream->stream_type, + enum_name (GST_TYPE_MPEG_TS_STREAM_TYPE, stream->stream_type)); dump_descriptors (stream->descriptors, 9); } } @@ -438,6 +439,7 @@ main (int argc, gchar ** argv) g_type_class_ref (GST_TYPE_MPEG_TS_MISC_DESCRIPTOR_TYPE); g_type_class_ref (GST_TYPE_MPEG_TS_ISO639_AUDIO_TYPE); g_type_class_ref (GST_TYPE_MPEG_TS_DVB_SERVICE_TYPE); + g_type_class_ref (GST_TYPE_MPEG_TS_STREAM_TYPE); mainloop = g_main_loop_new (NULL, FALSE); |