mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-11 22:31:22 +00:00
This one was missing
Original commit message from CVS: This one was missing
This commit is contained in:
parent
c37952c970
commit
4e3bf35246
1 changed files with 28 additions and 33 deletions
|
@ -38,13 +38,8 @@
|
||||||
GstElementDetails modplug_details = {
|
GstElementDetails modplug_details = {
|
||||||
"ModPlug",
|
"ModPlug",
|
||||||
"Codec/Audio/Decoder",
|
"Codec/Audio/Decoder",
|
||||||
"LGPL",
|
|
||||||
"Module decoder based on modplug engine",
|
"Module decoder based on modplug engine",
|
||||||
VERSION,
|
"Jeremy SIMON <jsimon13@yahoo.fr>"
|
||||||
"Jeremy SIMON <jsimon13@yahoo.fr>\n"
|
|
||||||
"Kenton Varda <temporal@gauge3d.org>\n"
|
|
||||||
"Olivier Lapicque <olivierl@jps.net>",
|
|
||||||
"(C) 2001"
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -100,7 +95,7 @@ enum {
|
||||||
MODPLUG_STATE_PLAY_TUNE = 3,
|
MODPLUG_STATE_PLAY_TUNE = 3,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static void gst_modplug_base_init (GstModPlugClass *klass);
|
||||||
static void gst_modplug_class_init (GstModPlugClass *klass);
|
static void gst_modplug_class_init (GstModPlugClass *klass);
|
||||||
static void gst_modplug_init (GstModPlug *filter);
|
static void gst_modplug_init (GstModPlug *filter);
|
||||||
static void gst_modplug_set_property (GObject *object,
|
static void gst_modplug_set_property (GObject *object,
|
||||||
|
@ -136,7 +131,7 @@ gst_modplug_get_type(void) {
|
||||||
if (!modplug_type) {
|
if (!modplug_type) {
|
||||||
static const GTypeInfo modplug_info = {
|
static const GTypeInfo modplug_info = {
|
||||||
sizeof(GstModPlugClass),
|
sizeof(GstModPlugClass),
|
||||||
NULL,
|
(GBaseInitFunc)gst_modplug_base_init,
|
||||||
NULL,
|
NULL,
|
||||||
(GClassInitFunc)gst_modplug_class_init,
|
(GClassInitFunc)gst_modplug_class_init,
|
||||||
NULL,
|
NULL,
|
||||||
|
@ -151,6 +146,17 @@ gst_modplug_get_type(void) {
|
||||||
return modplug_type;
|
return modplug_type;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
gst_modplug_base_init (GstModPlugClass *klass)
|
||||||
|
{
|
||||||
|
GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
|
||||||
|
|
||||||
|
gst_element_class_add_pad_template (element_class,
|
||||||
|
GST_PAD_TEMPLATE_GET (modplug_sink_template_factory));
|
||||||
|
gst_element_class_add_pad_template (element_class,
|
||||||
|
GST_PAD_TEMPLATE_GET (modplug_src_template_factory));
|
||||||
|
gst_element_class_set_details (element_class, &modplug_details);
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gst_modplug_class_init (GstModPlugClass *klass)
|
gst_modplug_class_init (GstModPlugClass *klass)
|
||||||
|
@ -812,37 +818,26 @@ gst_modplug_get_property (GObject *object, guint id, GValue *value, GParamSpec *
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
plugin_init (GModule *module, GstPlugin *plugin)
|
plugin_init (GstPlugin *plugin)
|
||||||
{
|
{
|
||||||
GstElementFactory *factory;
|
|
||||||
guint i;
|
|
||||||
|
|
||||||
/* this filter needs the bytestream package */
|
/* this filter needs the bytestream package */
|
||||||
if (!gst_library_load ("gstbytestream"))
|
if (!gst_library_load ("gstbytestream"))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
factory = gst_element_factory_new ("modplug", GST_TYPE_MODPLUG, &modplug_details);
|
return gst_element_register (plugin, "modplug",
|
||||||
g_return_val_if_fail (factory != NULL, FALSE);
|
GST_RANK_PRIMARY, GST_TYPE_MODPLUG);
|
||||||
|
|
||||||
gst_element_factory_set_rank (factory, GST_ELEMENT_RANK_PRIMARY);
|
|
||||||
|
|
||||||
gst_element_factory_add_pad_template (factory, GST_PAD_TEMPLATE_GET (modplug_sink_template_factory));
|
|
||||||
gst_element_factory_add_pad_template (factory, GST_PAD_TEMPLATE_GET (modplug_src_template_factory));
|
|
||||||
|
|
||||||
i = 0;
|
|
||||||
|
|
||||||
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,
|
||||||
"modplug",
|
"monoscope",
|
||||||
plugin_init
|
"Monoscope visualization",
|
||||||
};
|
plugin_init,
|
||||||
|
VERSION,
|
||||||
|
"LGPL",
|
||||||
|
"(c) 2001 Kenton Varda <temporal@gauge3d.org>\n"
|
||||||
|
"(c) 2001 Olivier Lapicque <olivierl@jps.net>",
|
||||||
|
GST_PACKAGE,
|
||||||
|
GST_ORIGIN
|
||||||
|
)
|
||||||
|
|
Loading…
Reference in a new issue