mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 18:05:37 +00:00
synaesthesia: use GST_BOILERPLATE macros
This commit is contained in:
parent
872e03b4bd
commit
ed9fd645ad
1 changed files with 4 additions and 30 deletions
|
@ -60,10 +60,6 @@ GST_STATIC_PAD_TEMPLATE ("sink",
|
||||||
GST_STATIC_CAPS (GST_AUDIO_INT_STANDARD_PAD_TEMPLATE_CAPS)
|
GST_STATIC_CAPS (GST_AUDIO_INT_STANDARD_PAD_TEMPLATE_CAPS)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
static void gst_synaesthesia_base_init (gpointer g_class);
|
|
||||||
static void gst_synaesthesia_class_init (GstSynaesthesiaClass * klass);
|
|
||||||
static void gst_synaesthesia_init (GstSynaesthesia * synaesthesia);
|
|
||||||
static void gst_synaesthesia_finalize (GObject * object);
|
static void gst_synaesthesia_finalize (GObject * object);
|
||||||
static void gst_synaesthesia_dispose (GObject * object);
|
static void gst_synaesthesia_dispose (GObject * object);
|
||||||
|
|
||||||
|
@ -76,31 +72,8 @@ static gboolean gst_synaesthesia_src_negotiate (GstSynaesthesia * synaesthesia);
|
||||||
static gboolean gst_synaesthesia_src_setcaps (GstPad * pad, GstCaps * caps);
|
static gboolean gst_synaesthesia_src_setcaps (GstPad * pad, GstCaps * caps);
|
||||||
static gboolean gst_synaesthesia_sink_setcaps (GstPad * pad, GstCaps * caps);
|
static gboolean gst_synaesthesia_sink_setcaps (GstPad * pad, GstCaps * caps);
|
||||||
|
|
||||||
static GstElementClass *parent_class = NULL;
|
GST_BOILERPLATE (GstSynaesthesia, gst_synaesthesia, GstElement,
|
||||||
|
GST_TYPE_ELEMENT);
|
||||||
GType
|
|
||||||
gst_synaesthesia_get_type (void)
|
|
||||||
{
|
|
||||||
static GType type = 0;
|
|
||||||
|
|
||||||
if (!type) {
|
|
||||||
static const GTypeInfo info = {
|
|
||||||
sizeof (GstSynaesthesiaClass),
|
|
||||||
gst_synaesthesia_base_init,
|
|
||||||
NULL,
|
|
||||||
(GClassInitFunc) gst_synaesthesia_class_init,
|
|
||||||
NULL,
|
|
||||||
NULL,
|
|
||||||
sizeof (GstSynaesthesia),
|
|
||||||
0,
|
|
||||||
(GInstanceInitFunc) gst_synaesthesia_init,
|
|
||||||
};
|
|
||||||
|
|
||||||
type =
|
|
||||||
g_type_register_static (GST_TYPE_ELEMENT, "GstSynaesthesia", &info, 0);
|
|
||||||
}
|
|
||||||
return type;
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gst_synaesthesia_base_init (gpointer g_class)
|
gst_synaesthesia_base_init (gpointer g_class)
|
||||||
|
@ -139,7 +112,8 @@ gst_synaesthesia_class_init (GstSynaesthesiaClass * klass)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gst_synaesthesia_init (GstSynaesthesia * synaesthesia)
|
gst_synaesthesia_init (GstSynaesthesia * synaesthesia,
|
||||||
|
GstSynaesthesiaClass * g_class)
|
||||||
{
|
{
|
||||||
/* create the sink and src pads */
|
/* create the sink and src pads */
|
||||||
synaesthesia->sinkpad =
|
synaesthesia->sinkpad =
|
||||||
|
|
Loading…
Reference in a new issue