mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
mpegts: add bouquet name descriptor
https://bugzilla.gnome.org/show_bug.cgi?id=728364
This commit is contained in:
parent
985d19deaa
commit
bc7cf1520c
3 changed files with 31 additions and 0 deletions
|
@ -325,6 +325,8 @@ GstMpegTsDVBServiceListItem
|
|||
gst_mpegts_descriptor_parse_dvb_service_list
|
||||
<SUBSECTION stuffing>
|
||||
gst_mpegts_descriptor_parse_dvb_stuffing
|
||||
<SUBSECTION bouquet_name>
|
||||
gst_mpegts_descriptor_parse_dvb_bouquet_name
|
||||
<SUBSECTION Standard>
|
||||
GST_TYPE_MPEG_TSDVB_CODE_RATE
|
||||
gst_mpegts_dvb_code_rate_get_type
|
||||
|
|
|
@ -389,6 +389,31 @@ gst_mpegts_descriptor_parse_cable_delivery_system (const GstMpegTsDescriptor *
|
|||
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_mpegts_descriptor_parse_dvb_service:
|
||||
|
|
|
@ -283,6 +283,10 @@ struct _GstMpegTsCableDeliverySystemDescriptor
|
|||
gboolean gst_mpegts_descriptor_parse_cable_delivery_system (const GstMpegTsDescriptor *descriptor,
|
||||
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) */
|
||||
/**
|
||||
* GstMpegTsDVBServiceType:
|
||||
|
|
Loading…
Reference in a new issue