mpegts: Register a boxed type for GstMpegtsContent
This commit is contained in:
parent
00acafc209
commit
dcad6d1031
@ -1282,12 +1282,29 @@ gst_mpegts_descriptor_parse_dvb_ca_identifier (const GstMpegtsDescriptor *
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* GST_MTS_DESC_DVB_CONTENT (0x54) */
|
/* GST_MTS_DESC_DVB_CONTENT (0x54) */
|
||||||
|
|
||||||
|
static GstMpegtsContent *
|
||||||
|
_gst_mpegts_content_copy (GstMpegtsContent * source)
|
||||||
|
{
|
||||||
|
GstMpegtsContent *copy;
|
||||||
|
|
||||||
|
copy = g_slice_dup (GstMpegtsContent, source);
|
||||||
|
|
||||||
|
return copy;
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_gst_mpegts_content_free (GstMpegtsContent * content)
|
_gst_mpegts_content_free (GstMpegtsContent * content)
|
||||||
{
|
{
|
||||||
g_slice_free (GstMpegtsContent, content);
|
g_slice_free (GstMpegtsContent, content);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
G_DEFINE_BOXED_TYPE (GstMpegtsContent,
|
||||||
|
gst_mpegts_content,
|
||||||
|
(GBoxedCopyFunc) _gst_mpegts_content_copy,
|
||||||
|
(GFreeFunc) _gst_mpegts_content_free);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* gst_mpegts_descriptor_parse_dvb_content:
|
* gst_mpegts_descriptor_parse_dvb_content:
|
||||||
* @descriptor: a %GST_MTS_DESC_DVB_CONTENT #GstMpegtsDescriptor
|
* @descriptor: a %GST_MTS_DESC_DVB_CONTENT #GstMpegtsDescriptor
|
||||||
|
@ -612,10 +612,16 @@ struct _GstMpegtsContent
|
|||||||
guint8 user_byte;
|
guint8 user_byte;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#define GST_TYPE_MPEGTS_CONTENT (gst_mpegts_content_get_type ())
|
||||||
|
|
||||||
|
GST_MPEGTS_API
|
||||||
|
GType gst_mpegts_content_get_type (void);
|
||||||
|
|
||||||
GST_MPEGTS_API
|
GST_MPEGTS_API
|
||||||
gboolean gst_mpegts_descriptor_parse_dvb_content (const GstMpegtsDescriptor *
|
gboolean gst_mpegts_descriptor_parse_dvb_content (const GstMpegtsDescriptor *
|
||||||
descriptor, GPtrArray ** content);
|
descriptor, GPtrArray ** content);
|
||||||
|
|
||||||
|
|
||||||
/* GST_MTS_DESC_DVB_PARENTAL_RATING (0x55) */
|
/* GST_MTS_DESC_DVB_PARENTAL_RATING (0x55) */
|
||||||
typedef struct _GstMpegtsDVBParentalRatingItem GstMpegtsDVBParentalRatingItem;
|
typedef struct _GstMpegtsDVBParentalRatingItem GstMpegtsDVBParentalRatingItem;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user