mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 00:31:13 +00:00
Fix CDParanoia for the new defines too
Original commit message from CVS: Fix CDParanoia for the new defines too
This commit is contained in:
parent
3d97918694
commit
5ac7ef3cfa
1 changed files with 23 additions and 23 deletions
|
@ -47,11 +47,8 @@
|
||||||
static GstElementDetails cdparanoia_details = {
|
static GstElementDetails cdparanoia_details = {
|
||||||
"CD Audio (cdda) Source, Paranoia IV",
|
"CD Audio (cdda) Source, Paranoia IV",
|
||||||
"Source/File",
|
"Source/File",
|
||||||
"GPL",
|
|
||||||
"Read audio from CD in paranoid mode",
|
"Read audio from CD in paranoid mode",
|
||||||
VERSION,
|
|
||||||
"Erik Walthinsen <omega@cse.ogi.edu>",
|
"Erik Walthinsen <omega@cse.ogi.edu>",
|
||||||
"(C) 2000",
|
|
||||||
};
|
};
|
||||||
|
|
||||||
GST_PAD_TEMPLATE_FACTORY (cdparanoia_src_factory,
|
GST_PAD_TEMPLATE_FACTORY (cdparanoia_src_factory,
|
||||||
|
@ -136,7 +133,7 @@ enum
|
||||||
ARG_DISCID
|
ARG_DISCID
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static void cdparanoia_base_init (gpointer g_class);
|
||||||
static void cdparanoia_class_init (CDParanoiaClass *klass);
|
static void cdparanoia_class_init (CDParanoiaClass *klass);
|
||||||
static void cdparanoia_init (CDParanoia *cdparanoia);
|
static void cdparanoia_init (CDParanoia *cdparanoia);
|
||||||
|
|
||||||
|
@ -180,7 +177,8 @@ cdparanoia_get_type (void)
|
||||||
|
|
||||||
if (!cdparanoia_type) {
|
if (!cdparanoia_type) {
|
||||||
static const GTypeInfo cdparanoia_info = {
|
static const GTypeInfo cdparanoia_info = {
|
||||||
sizeof (CDParanoiaClass), NULL,
|
sizeof (CDParanoiaClass),
|
||||||
|
cdparanoia_base_init,
|
||||||
NULL,
|
NULL,
|
||||||
(GClassInitFunc) cdparanoia_class_init,
|
(GClassInitFunc) cdparanoia_class_init,
|
||||||
NULL,
|
NULL,
|
||||||
|
@ -199,6 +197,15 @@ cdparanoia_get_type (void)
|
||||||
return cdparanoia_type;
|
return cdparanoia_type;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
cdparanoia_base_init (gpointer g_class)
|
||||||
|
{
|
||||||
|
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
|
||||||
|
|
||||||
|
gst_element_class_add_pad_template (element_class, GST_PAD_TEMPLATE_GET (cdparanoia_src_factory));
|
||||||
|
gst_element_class_set_details (element_class, &cdparanoia_details);
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
cdparanoia_class_init (CDParanoiaClass *klass)
|
cdparanoia_class_init (CDParanoiaClass *klass)
|
||||||
{
|
{
|
||||||
|
@ -1099,29 +1106,22 @@ cdparanoia_get_index (GstElement *element)
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
plugin_init (GModule *module, GstPlugin *plugin)
|
plugin_init (GstPlugin *plugin)
|
||||||
{
|
{
|
||||||
GstElementFactory *factory;
|
if (!gst_element_register (plugin, "cdparanoia", GST_RANK_NONE, GST_TYPE_CDPARANOIA))
|
||||||
|
return FALSE;
|
||||||
/* create an elementfactory for the cdparanoia element */
|
|
||||||
factory = gst_element_factory_new ("cdparanoia",
|
|
||||||
GST_TYPE_CDPARANOIA,
|
|
||||||
&cdparanoia_details);
|
|
||||||
g_return_val_if_fail (factory != NULL, FALSE);
|
|
||||||
|
|
||||||
/* register the source's caps */
|
|
||||||
gst_element_factory_add_pad_template (factory,
|
|
||||||
GST_PAD_TEMPLATE_GET (cdparanoia_src_factory));
|
|
||||||
|
|
||||||
/* and add the cdparanoia element factory to the plugin */
|
|
||||||
gst_plugin_add_feature (plugin, GST_PLUGIN_FEATURE (factory));
|
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
GstPluginDesc plugin_desc = {
|
GST_PLUGIN_DEFINE (
|
||||||
GST_VERSION_MAJOR,
|
GST_VERSION_MAJOR,
|
||||||
GST_VERSION_MINOR,
|
GST_VERSION_MINOR,
|
||||||
"cdparanoia",
|
"cdparanoia",
|
||||||
plugin_init
|
"Read audio from CD in paranoid mode",
|
||||||
};
|
plugin_init,
|
||||||
|
VERSION,
|
||||||
|
"GPL",
|
||||||
|
GST_COPYRIGHT,
|
||||||
|
GST_PACKAGE,
|
||||||
|
GST_ORIGIN)
|
||||||
|
|
Loading…
Reference in a new issue