DVDReadSrc updated as well

Original commit message from CVS:
DVDReadSrc updated as well
This commit is contained in:
Iain Holmes 2003-11-01 15:19:40 +00:00
parent 382130066c
commit 442f4abec8

View file

@ -89,11 +89,8 @@ struct _DVDReadSrcPrivate {
GstElementDetails dvdreadsrc_details = {
"DVD Source",
"Source/File/DVD",
"GPL",
"Access a DVD title/chapter/angle using libdvdread",
VERSION,
"Erik Walthinsen <omega@cse.ogi.edu>",
"(C) 2001",
};
@ -111,7 +108,7 @@ enum {
ARG_ANGLE
};
static void dvdreadsrc_base_init (gpointer g_class);
static void dvdreadsrc_class_init (DVDReadSrcClass *klass);
static void dvdreadsrc_init (DVDReadSrc *dvdreadsrc);
@ -135,7 +132,8 @@ dvdreadsrc_get_type (void)
if (!dvdreadsrc_type) {
static const GTypeInfo dvdreadsrc_info = {
sizeof(DVDReadSrcClass), NULL,
sizeof(DVDReadSrcClass),
dvdreadsrc_base_init,
NULL,
(GClassInitFunc)dvdreadsrc_class_init,
NULL,
@ -149,6 +147,14 @@ dvdreadsrc_get_type (void)
return dvdreadsrc_type;
}
static void
dvdreadsrc_base_init (gpointer g_class)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_set_details (element_class, &dvdreadsrc_details);
}
static void
dvdreadsrc_class_init (DVDReadSrcClass *klass)
{
@ -771,24 +777,23 @@ dvdreadsrc_change_state (GstElement *element)
}
static gboolean
plugin_init (GModule *module, GstPlugin *plugin)
plugin_init (GstPlugin *plugin)
{
GstElementFactory *factory;
/* create an elementfactory for the dvdreadsrc element */
factory = gst_element_factory_new ("dvdreadsrc", GST_TYPE_DVDREADSRC,
&dvdreadsrc_details);
g_return_val_if_fail (factory != NULL, FALSE);
gst_plugin_add_feature (plugin, GST_PLUGIN_FEATURE (factory));
if (!gst_element_register (plugin, "dvdreadsrc", GST_RANK_NONE, GST_TYPE_DVDREADSRC))
return FALSE;
return TRUE;
}
GstPluginDesc plugin_desc = {
GST_PLUGIN_DEFINE (
GST_VERSION_MAJOR,
GST_VERSION_MINOR,
"dvdreadsrc",
plugin_init
};
"Access a DVD with dvdread",
plugin_init,
VERSION,
"GPL",
GST_COPYRIGHT,
GST_PACKAGE,
GST_ORIGIN)