goom2k1: use some more boilerplate
This commit is contained in:
parent
858468b9b1
commit
abc30b7e46
@ -91,8 +91,6 @@ static GstStaticPadTemplate sink_template = GST_STATIC_PAD_TEMPLATE ("sink",
|
|||||||
"channel-mask = (bitmask) 0x3, " "layout = (string) interleaved")
|
"channel-mask = (bitmask) 0x3, " "layout = (string) interleaved")
|
||||||
);
|
);
|
||||||
|
|
||||||
static void gst_goom_class_init (GstGoomClass * klass);
|
|
||||||
static void gst_goom_init (GstGoom * goom);
|
|
||||||
static void gst_goom_finalize (GObject * object);
|
static void gst_goom_finalize (GObject * object);
|
||||||
|
|
||||||
static GstStateChangeReturn gst_goom_change_state (GstElement * element,
|
static GstStateChangeReturn gst_goom_change_state (GstElement * element,
|
||||||
@ -108,30 +106,10 @@ static gboolean gst_goom_sink_event (GstPad * pad, GstObject * parent,
|
|||||||
static gboolean gst_goom_src_query (GstPad * pad, GstObject * parent,
|
static gboolean gst_goom_src_query (GstPad * pad, GstObject * parent,
|
||||||
GstQuery * query);
|
GstQuery * query);
|
||||||
|
|
||||||
static GstElementClass *parent_class = NULL;
|
#define gst_goom_parent_class parent_class
|
||||||
|
typedef GstGoom GstGoom2k1;
|
||||||
GType
|
typedef GstGoomClass GstGoom2k1Class;
|
||||||
gst_goom_get_type (void)
|
G_DEFINE_TYPE (GstGoom2k1, gst_goom, GST_TYPE_ELEMENT);
|
||||||
{
|
|
||||||
static GType type = 0;
|
|
||||||
|
|
||||||
if (!type) {
|
|
||||||
static const GTypeInfo info = {
|
|
||||||
sizeof (GstGoomClass),
|
|
||||||
NULL,
|
|
||||||
NULL,
|
|
||||||
(GClassInitFunc) gst_goom_class_init,
|
|
||||||
NULL,
|
|
||||||
NULL,
|
|
||||||
sizeof (GstGoom),
|
|
||||||
0,
|
|
||||||
(GInstanceInitFunc) gst_goom_init,
|
|
||||||
};
|
|
||||||
|
|
||||||
type = g_type_register_static (GST_TYPE_ELEMENT, "GstGoom2k1", &info, 0);
|
|
||||||
}
|
|
||||||
return type;
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gst_goom_class_init (GstGoomClass * klass)
|
gst_goom_class_init (GstGoomClass * klass)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user