examples/ts-parser: Try more descriptor/stream types

These were added recently

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1880>
This commit is contained in:
Edward Hervey 2020-12-14 10:56:02 +01:00 committed by Edward Hervey
parent fe6ae27046
commit 160106885a

View file

@ -106,6 +106,10 @@ descriptor_name (GstMpegtsDescriptor * desc)
/* Else try with ISB enum types */
en = g_enum_get_value (G_ENUM_CLASS (g_type_class_peek
(GST_TYPE_MPEGTS_ISDB_DESCRIPTOR_TYPE)), val);
if (en == NULL)
/* Else try with SCTE enum types */
en = g_enum_get_value (G_ENUM_CLASS (g_type_class_peek
(GST_TYPE_MPEGTS_SCTE_DESCRIPTOR_TYPE)), val);
if (en == NULL)
/* Else try with misc enum types */
en = g_enum_get_value (G_ENUM_CLASS (g_type_class_peek
@ -146,6 +150,10 @@ stream_type_name (gint val)
en = g_enum_get_value (G_ENUM_CLASS (g_type_class_peek
(GST_TYPE_MPEGTS_STREAM_TYPE)), val);
if (en == NULL)
/* Else try with HDMV enum types */
en = g_enum_get_value (G_ENUM_CLASS (g_type_class_peek
(GST_TYPE_MPEGTS_HDMV_STREAM_TYPE)), val);
if (en == NULL)
/* Else try with SCTE enum types */
en = g_enum_get_value (G_ENUM_CLASS (g_type_class_peek
@ -1377,6 +1385,7 @@ main (int argc, gchar ** argv)
g_type_class_ref (GST_TYPE_MPEGTS_DVB_EXTENDED_DESCRIPTOR_TYPE);
g_type_class_ref (GST_TYPE_MPEGTS_ATSC_DESCRIPTOR_TYPE);
g_type_class_ref (GST_TYPE_MPEGTS_ISDB_DESCRIPTOR_TYPE);
g_type_class_ref (GST_TYPE_MPEGTS_SCTE_DESCRIPTOR_TYPE);
g_type_class_ref (GST_TYPE_MPEGTS_MISC_DESCRIPTOR_TYPE);
g_type_class_ref (GST_TYPE_MPEGTS_ISO639_AUDIO_TYPE);
g_type_class_ref (GST_TYPE_MPEGTS_DVB_SERVICE_TYPE);
@ -1396,6 +1405,7 @@ main (int argc, gchar ** argv)
g_type_class_ref (GST_TYPE_MPEGTS_COMPONENT_STREAM_CONTENT);
g_type_class_ref (GST_TYPE_MPEGTS_CONTENT_NIBBLE_HI);
g_type_class_ref (GST_TYPE_MPEGTS_SCTE_STREAM_TYPE);
g_type_class_ref (GST_TYPE_MPEGTS_HDMV_STREAM_TYPE);
g_type_class_ref (GST_TYPE_MPEGTS_SECTION_SCTE_TABLE_ID);
mainloop = g_main_loop_new (NULL, FALSE);