mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
Add a base init function
Original commit message from CVS: Add a base init function
This commit is contained in:
parent
bfd44accb6
commit
96e5a724f8
1 changed files with 9 additions and 5 deletions
|
@ -49,6 +49,7 @@ enum {
|
||||||
/* FILL ME */
|
/* FILL ME */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static void gst_videofilter_base_init (GstVideofilterClass *klass);
|
||||||
static void gst_videofilter_class_init (GstVideofilterClass *klass);
|
static void gst_videofilter_class_init (GstVideofilterClass *klass);
|
||||||
static void gst_videofilter_init (GstVideofilter *videofilter);
|
static void gst_videofilter_init (GstVideofilter *videofilter);
|
||||||
|
|
||||||
|
@ -68,7 +69,8 @@ gst_videofilter_get_type (void)
|
||||||
|
|
||||||
if (!videofilter_type) {
|
if (!videofilter_type) {
|
||||||
static const GTypeInfo videofilter_info = {
|
static const GTypeInfo videofilter_info = {
|
||||||
sizeof(GstVideofilterClass), NULL,
|
sizeof(GstVideofilterClass),
|
||||||
|
(GBaseInitFunc)gst_videofilter_base_init,
|
||||||
NULL,
|
NULL,
|
||||||
(GClassInitFunc)gst_videofilter_class_init,
|
(GClassInitFunc)gst_videofilter_class_init,
|
||||||
NULL,
|
NULL,
|
||||||
|
@ -83,8 +85,12 @@ gst_videofilter_get_type (void)
|
||||||
return videofilter_type;
|
return videofilter_type;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void gst_videofilter_base_init (GstVideofilterClass *klass)
|
||||||
gst_videofilter_class_init (GstVideofilterClass *klass)
|
{
|
||||||
|
klass->formats = g_ptr_array_new();
|
||||||
|
}
|
||||||
|
|
||||||
|
static void gst_videofilter_class_init (GstVideofilterClass *klass)
|
||||||
{
|
{
|
||||||
GObjectClass *gobject_class;
|
GObjectClass *gobject_class;
|
||||||
GstElementClass *gstelement_class;
|
GstElementClass *gstelement_class;
|
||||||
|
@ -96,8 +102,6 @@ gst_videofilter_class_init (GstVideofilterClass *klass)
|
||||||
|
|
||||||
gobject_class->set_property = gst_videofilter_set_property;
|
gobject_class->set_property = gst_videofilter_set_property;
|
||||||
gobject_class->get_property = gst_videofilter_get_property;
|
gobject_class->get_property = gst_videofilter_get_property;
|
||||||
|
|
||||||
klass->formats = g_ptr_array_new();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
|
|
Loading…
Reference in a new issue