*sigh*
Original commit message from CVS: *sigh*
This commit is contained in:
parent
3abd39932a
commit
2e0567078d
@ -29,11 +29,8 @@
|
|||||||
static GstElementDetails level_details = {
|
static GstElementDetails level_details = {
|
||||||
"Level",
|
"Level",
|
||||||
"Filter/Audio/Analysis",
|
"Filter/Audio/Analysis",
|
||||||
"LGPL",
|
|
||||||
"RMS/Peak/Decaying Peak Level signaller for audio/raw",
|
"RMS/Peak/Decaying Peak Level signaller for audio/raw",
|
||||||
VERSION,
|
"Thomas <thomas@apestaart.org>"
|
||||||
"Thomas <thomas@apestaart.org>",
|
|
||||||
"(C) 2001, 2003, 2003",
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/* pad templates */
|
/* pad templates */
|
||||||
@ -96,6 +93,7 @@ enum {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static void gst_level_class_init (GstLevelClass *klass);
|
static void gst_level_class_init (GstLevelClass *klass);
|
||||||
|
static void gst_level_base_init (GstLevelClass *klass);
|
||||||
static void gst_level_init (GstLevel *filter);
|
static void gst_level_init (GstLevel *filter);
|
||||||
|
|
||||||
static void gst_level_set_property (GObject *object, guint prop_id, const GValue *value, GParamSpec *pspec);
|
static void gst_level_set_property (GObject *object, guint prop_id, const GValue *value, GParamSpec *pspec);
|
||||||
@ -115,7 +113,8 @@ gst_level_get_type (void)
|
|||||||
{
|
{
|
||||||
static const GTypeInfo level_info =
|
static const GTypeInfo level_info =
|
||||||
{
|
{
|
||||||
sizeof (GstLevelClass), NULL, NULL,
|
sizeof (GstLevelClass),
|
||||||
|
(GBaseInitFunc) gst_level_base_init, NULL,
|
||||||
(GClassInitFunc) gst_level_class_init, NULL, NULL,
|
(GClassInitFunc) gst_level_class_init, NULL, NULL,
|
||||||
sizeof (GstLevel), 0,
|
sizeof (GstLevel), 0,
|
||||||
(GInstanceInitFunc) gst_level_init
|
(GInstanceInitFunc) gst_level_init
|
||||||
@ -369,6 +368,18 @@ gst_level_get_property (GObject *object, guint prop_id,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
gst_level_base_init (GstLevelClass *klass)
|
||||||
|
{
|
||||||
|
GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
|
||||||
|
|
||||||
|
gst_element_class_add_pad_template (element_class,
|
||||||
|
GST_PAD_TEMPLATE_GET (sink_template_factory));
|
||||||
|
gst_element_class_add_pad_template (element_class,
|
||||||
|
GST_PAD_TEMPLATE_GET (src_template_factory));
|
||||||
|
gst_element_class_set_details (element_class, &level_details);
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gst_level_class_init (GstLevelClass *klass)
|
gst_level_class_init (GstLevelClass *klass)
|
||||||
{
|
{
|
||||||
@ -436,25 +447,21 @@ gst_level_init (GstLevel *filter)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
plugin_init (GModule *module, GstPlugin *plugin)
|
plugin_init (GstPlugin *plugin)
|
||||||
{
|
{
|
||||||
GstElementFactory *factory;
|
return gst_element_register (plugin, "level",
|
||||||
|
GST_RANK_NONE, GST_TYPE_LEVEL);
|
||||||
factory = gst_element_factory_new ("level", GST_TYPE_LEVEL,
|
|
||||||
&level_details);
|
|
||||||
g_return_val_if_fail (factory != NULL, FALSE);
|
|
||||||
|
|
||||||
gst_element_factory_add_pad_template (factory, GST_PAD_TEMPLATE_GET (sink_template_factory));
|
|
||||||
gst_element_factory_add_pad_template (factory, GST_PAD_TEMPLATE_GET (src_template_factory));
|
|
||||||
|
|
||||||
gst_plugin_add_feature (plugin, GST_PLUGIN_FEATURE (factory));
|
|
||||||
|
|
||||||
return TRUE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
GstPluginDesc plugin_desc = {
|
GST_PLUGIN_DEFINE (
|
||||||
GST_VERSION_MAJOR,
|
GST_VERSION_MAJOR,
|
||||||
GST_VERSION_MINOR,
|
GST_VERSION_MINOR,
|
||||||
"level",
|
"level",
|
||||||
plugin_init
|
"Audio level plugin",
|
||||||
};
|
plugin_init,
|
||||||
|
VERSION,
|
||||||
|
GST_LICENSE,
|
||||||
|
GST_COPYRIGHT,
|
||||||
|
GST_PACKAGE,
|
||||||
|
GST_ORIGIN
|
||||||
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user