mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
mpegts: Add boxed type for DVB CableDeliverySystem descriptor
This commit is contained in:
parent
690a18ee09
commit
ff47ef9ab9
2 changed files with 29 additions and 1 deletions
|
@ -293,8 +293,29 @@ gst_mpegts_descriptor_parse_satellite_delivery_system (const GstMpegtsDescriptor
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
|
||||
/* GST_MTS_DESC_DVB_CABLE_DELIVERY_SYSTEM (0x44) */
|
||||
static GstMpegtsCableDeliverySystemDescriptor
|
||||
* _gst_mpegts_dvb_cable_delivery_system_descriptor_copy
|
||||
(GstMpegtsCableDeliverySystemDescriptor * source)
|
||||
{
|
||||
GstMpegtsCableDeliverySystemDescriptor *copy;
|
||||
|
||||
copy = g_slice_dup (GstMpegtsCableDeliverySystemDescriptor, source);
|
||||
|
||||
return copy;
|
||||
}
|
||||
|
||||
void gst_mpegts_dvb_cable_delivery_system_descriptor_free
|
||||
(GstMpegtsCableDeliverySystemDescriptor * source)
|
||||
{
|
||||
g_slice_free (GstMpegtsCableDeliverySystemDescriptor, source);
|
||||
}
|
||||
|
||||
G_DEFINE_BOXED_TYPE (GstMpegtsCableDeliverySystemDescriptor,
|
||||
gst_mpegts_dvb_cable_delivery_system_descriptor,
|
||||
(GBoxedCopyFunc) _gst_mpegts_dvb_cable_delivery_system_descriptor_copy,
|
||||
(GFreeFunc) gst_mpegts_dvb_cable_delivery_system_descriptor_free);
|
||||
|
||||
/**
|
||||
* gst_mpegts_descriptor_parse_cable_delivery_system:
|
||||
* @descriptor: a %GST_MTS_DESC_DVB_CABLE_DELIVERY_SYSTEM #GstMpegtsDescriptor
|
||||
|
|
|
@ -287,9 +287,16 @@ struct _GstMpegtsCableDeliverySystemDescriptor
|
|||
GstMpegtsDVBCodeRate fec_inner;
|
||||
};
|
||||
|
||||
#define GST_TYPE_MPEGTS_DVB_CABLE_DELIVERY_SYSTEM_DESCRIPTOR ( gst_mpegts_dvb_cable_system_delivery_descriptor_get_type())
|
||||
|
||||
GST_MPEGTS_API
|
||||
GType gst_mpegts_dvb_cable_delivery_system_descriptor_get_type (void);
|
||||
|
||||
GST_MPEGTS_API
|
||||
gboolean gst_mpegts_descriptor_parse_cable_delivery_system (const GstMpegtsDescriptor *descriptor,
|
||||
GstMpegtsCableDeliverySystemDescriptor *res);
|
||||
GST_MPEGTS_API
|
||||
void gst_mpegts_dvb_cable_delivery_system_descriptor_free (GstMpegtsCableDeliverySystemDescriptor * source);
|
||||
|
||||
/* GST_MTS_DESC_DVB_BOUQUET_NAME (0x47) */
|
||||
|
||||
|
|
Loading…
Reference in a new issue