mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-04 09:42:19 +00:00
mpegts: add stuffing descriptor
https://bugzilla.gnome.org/show_bug.cgi?id=728364
This commit is contained in:
parent
570f78df79
commit
985d19deaa
3 changed files with 33 additions and 0 deletions
|
@ -323,6 +323,8 @@ gst_mpegts_descriptor_parse_dvb_ca_identifier
|
|||
<SUBSECTION service_list>
|
||||
GstMpegTsDVBServiceListItem
|
||||
gst_mpegts_descriptor_parse_dvb_service_list
|
||||
<SUBSECTION stuffing>
|
||||
gst_mpegts_descriptor_parse_dvb_stuffing
|
||||
<SUBSECTION Standard>
|
||||
GST_TYPE_MPEG_TSDVB_CODE_RATE
|
||||
gst_mpegts_dvb_code_rate_get_type
|
||||
|
|
|
@ -159,6 +159,32 @@ gst_mpegts_descriptor_parse_dvb_service_list (const GstMpegTsDescriptor *
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
/* GST_MTS_DESC_DVB_STUFFING (0x42) */
|
||||
/**
|
||||
* gst_mpegts_descriptor_parse_dvb_stuffing:
|
||||
* @descriptor: a %GST_MTS_DESC_DVB_STUFFING #GstMpegTsDescriptor
|
||||
* @stuffing_bytes: (out): the stuffing bytes
|
||||
*
|
||||
* Parses out the stuffing bytes from the @descriptor.
|
||||
*
|
||||
* Returns: %TRUE if the parsing happened correctly, else %FALSE.
|
||||
*/
|
||||
gboolean
|
||||
gst_mpegts_descriptor_parse_dvb_stuffing (const GstMpegTsDescriptor *
|
||||
descriptor, guint8 ** stuffing_bytes)
|
||||
{
|
||||
guint8 *data;
|
||||
|
||||
g_return_val_if_fail (descriptor != NULL && stuffing_bytes != NULL, FALSE);
|
||||
__common_desc_checks (descriptor, GST_MTS_DESC_DVB_STUFFING, 0, FALSE);
|
||||
|
||||
data = (guint8 *) descriptor->data + 2;
|
||||
|
||||
*stuffing_bytes = g_memdup (data, descriptor->length);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/* GST_MTS_DESC_DVB_SATELLITE_DELIVERY_SYSTEM (0x43) */
|
||||
/**
|
||||
* gst_mpegts_descriptor_parse_satellite_delivery_system:
|
||||
|
|
|
@ -161,6 +161,11 @@ gboolean gst_mpegts_descriptor_parse_dvb_network_name (const GstMpegTsDescriptor
|
|||
|
||||
GstMpegTsDescriptor *gst_mpegts_descriptor_from_dvb_network_name (const gchar * name);
|
||||
|
||||
/* GST_MTS_DESC_DVB_STUFFING (0x42) */
|
||||
gboolean gst_mpegts_descriptor_parse_dvb_stuffing (const GstMpegTsDescriptor * descriptor,
|
||||
guint8 ** stuffing_bytes);
|
||||
|
||||
|
||||
/* GST_MTS_DESC_DVB_SATELLITE_DELIVERY_SYSTEM (0x43) */
|
||||
typedef struct _GstMpegTsSatelliteDeliverySystemDescriptor GstMpegTsSatelliteDeliverySystemDescriptor;
|
||||
|
||||
|
|
Loading…
Reference in a new issue