mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 18:05:37 +00:00
qtdemux: use GST_BOILERPLATE macro
This commit is contained in:
parent
1c47115b8e
commit
3b91ea7c81
1 changed files with 3 additions and 26 deletions
|
@ -364,11 +364,8 @@ GST_STATIC_PAD_TEMPLATE ("subtitle_%02d",
|
|||
GST_PAD_SOMETIMES,
|
||||
GST_STATIC_CAPS_ANY);
|
||||
|
||||
static GstElementClass *parent_class = NULL;
|
||||
GST_BOILERPLATE (GstQTDemux, gst_qtdemux, GstQTDemux, GST_TYPE_ELEMENT);
|
||||
|
||||
static void gst_qtdemux_class_init (GstQTDemuxClass * klass);
|
||||
static void gst_qtdemux_base_init (GstQTDemuxClass * klass);
|
||||
static void gst_qtdemux_init (GstQTDemux * quicktime_demux);
|
||||
static void gst_qtdemux_dispose (GObject * object);
|
||||
|
||||
static void gst_qtdemux_set_index (GstElement * element, GstIndex * index);
|
||||
|
@ -403,29 +400,9 @@ static GstCaps *qtdemux_sub_caps (GstQTDemux * qtdemux,
|
|||
static gboolean qtdemux_parse_samples (GstQTDemux * qtdemux,
|
||||
QtDemuxStream * stream, guint32 n);
|
||||
|
||||
GType
|
||||
gst_qtdemux_get_type (void)
|
||||
{
|
||||
static GType qtdemux_type = 0;
|
||||
|
||||
if (G_UNLIKELY (!qtdemux_type)) {
|
||||
static const GTypeInfo qtdemux_info = {
|
||||
sizeof (GstQTDemuxClass),
|
||||
(GBaseInitFunc) gst_qtdemux_base_init, NULL,
|
||||
(GClassInitFunc) gst_qtdemux_class_init,
|
||||
NULL, NULL, sizeof (GstQTDemux), 0,
|
||||
(GInstanceInitFunc) gst_qtdemux_init,
|
||||
};
|
||||
|
||||
qtdemux_type =
|
||||
g_type_register_static (GST_TYPE_ELEMENT, "GstQTDemux", &qtdemux_info,
|
||||
0);
|
||||
}
|
||||
return qtdemux_type;
|
||||
}
|
||||
|
||||
static void
|
||||
gst_qtdemux_base_init (GstQTDemuxClass * klass)
|
||||
gst_qtdemux_base_init (gpointer klass)
|
||||
{
|
||||
GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
|
||||
|
||||
|
@ -465,7 +442,7 @@ gst_qtdemux_class_init (GstQTDemuxClass * klass)
|
|||
}
|
||||
|
||||
static void
|
||||
gst_qtdemux_init (GstQTDemux * qtdemux)
|
||||
gst_qtdemux_init (GstQTDemux * qtdemux, GstQTDemuxClass * klass)
|
||||
{
|
||||
qtdemux->sinkpad =
|
||||
gst_pad_new_from_static_template (&gst_qtdemux_sink_template, "sink");
|
||||
|
|
Loading…
Reference in a new issue