mpegts: add bouquet name descriptor

https://bugzilla.gnome.org/show_bug.cgi?id=728364
This commit is contained in:
Stefan Ringel 2014-04-17 14:56:23 +02:00 committed by Edward Hervey
parent 985d19deaa
commit bc7cf1520c
3 changed files with 31 additions and 0 deletions

View file

@ -325,6 +325,8 @@ GstMpegTsDVBServiceListItem
gst_mpegts_descriptor_parse_dvb_service_list gst_mpegts_descriptor_parse_dvb_service_list
<SUBSECTION stuffing> <SUBSECTION stuffing>
gst_mpegts_descriptor_parse_dvb_stuffing gst_mpegts_descriptor_parse_dvb_stuffing
<SUBSECTION bouquet_name>
gst_mpegts_descriptor_parse_dvb_bouquet_name
<SUBSECTION Standard> <SUBSECTION Standard>
GST_TYPE_MPEG_TSDVB_CODE_RATE GST_TYPE_MPEG_TSDVB_CODE_RATE
gst_mpegts_dvb_code_rate_get_type gst_mpegts_dvb_code_rate_get_type

View file

@ -389,6 +389,31 @@ gst_mpegts_descriptor_parse_cable_delivery_system (const GstMpegTsDescriptor *
return TRUE; return TRUE;
} }
/* GST_MTS_DESC_DVB_BOUQUET_NAME (0x47) */
/**
* gst_mpegts_descriptor_parse_dvb_bouquet_name:
* @bouquet_name: (out) (transfer full) (allow-none): the bouquet name
*
* Extracts the bouquet name from @descriptor.
*
* Returns: %TRUE if parsing succeeded, else %FALSE.
*/
gboolean
gst_mpegts_descriptor_parse_dvb_bouquet_name (const GstMpegTsDescriptor *
descriptor, gchar ** bouquet_name)
{
guint8 *data;
g_return_val_if_fail (descriptor != NULL && bouquet_name != NULL, FALSE);
__common_desc_checks (descriptor, GST_MTS_DESC_DVB_BOUQUET_NAME, 1, FALSE);
data = (guint8 *) descriptor->data + 2;
*bouquet_name = get_encoding_and_convert ((const gchar *) data + 1, *data);
return TRUE;
}
/* GST_MTS_DESC_DVB_SERVICE (0x48) */ /* GST_MTS_DESC_DVB_SERVICE (0x48) */
/** /**
* gst_mpegts_descriptor_parse_dvb_service: * gst_mpegts_descriptor_parse_dvb_service:

View file

@ -283,6 +283,10 @@ struct _GstMpegTsCableDeliverySystemDescriptor
gboolean gst_mpegts_descriptor_parse_cable_delivery_system (const GstMpegTsDescriptor *descriptor, gboolean gst_mpegts_descriptor_parse_cable_delivery_system (const GstMpegTsDescriptor *descriptor,
GstMpegTsCableDeliverySystemDescriptor *res); GstMpegTsCableDeliverySystemDescriptor *res);
/* GST_MTS_DESC_DVB_BOUQUET_NAME (0x47) */
gboolean gst_mpegts_descriptor_parse_dvb_bouquet_name (const GstMpegTsDescriptor * descriptor,
gchar ** bouquet_name);
/* GST_MTS_DESC_DVB_SERVICE (0x48) */ /* GST_MTS_DESC_DVB_SERVICE (0x48) */
/** /**
* GstMpegTsDVBServiceType: * GstMpegTsDVBServiceType: