more, and more, and more...

Original commit message from CVS:
more, and more, and more...
This commit is contained in:
Ronald S. Bultje 2003-11-02 17:36:30 +00:00
parent 1b570ee7b8
commit 8c8cebf110

View file

@ -32,11 +32,8 @@
static GstElementDetails flxdec_details = { static GstElementDetails flxdec_details = {
"FLX Decoder", "FLX Decoder",
"Codec/Audio/Decoder", "Codec/Audio/Decoder",
"LGPL",
"FLX decoder", "FLX decoder",
VERSION, "Sepp Wijnands <mrrazz@garbage-coderz.net>"
"Sepp Wijnands <mrrazz@garbage-coderz.net>",
"(C) 2001",
}; };
/* Flx signals and args */ /* Flx signals and args */
@ -83,6 +80,7 @@ GST_PAD_TEMPLATE_FACTORY (src_video_factory,
static void gst_flxdec_class_init (GstFlxDecClass *klass); static void gst_flxdec_class_init (GstFlxDecClass *klass);
static void gst_flxdec_base_init (GstFlxDecClass *klass);
static void gst_flxdec_init (GstFlxDec *flxdec); static void gst_flxdec_init (GstFlxDec *flxdec);
static void gst_flxdec_loop (GstElement *element); static void gst_flxdec_loop (GstElement *element);
@ -110,7 +108,8 @@ gst_flxdec_get_type(void)
if (!flxdec_type) { if (!flxdec_type) {
static const GTypeInfo flxdec_info = { static const GTypeInfo flxdec_info = {
sizeof(GstFlxDecClass), NULL, sizeof(GstFlxDecClass),
(GBaseInitFunc)gst_flxdec_base_init,
NULL, NULL,
(GClassInitFunc)gst_flxdec_class_init, (GClassInitFunc)gst_flxdec_class_init,
NULL, NULL,
@ -124,6 +123,18 @@ gst_flxdec_get_type(void)
return flxdec_type; return flxdec_type;
} }
static void
gst_flxdec_base_init (GstFlxDecClass *klass)
{
GstElementClass *gstelement_class = GST_ELEMENT_CLASS (klass);
gst_element_class_set_details (gstelement_class, &flxdec_details);
gst_element_class_add_pad_template (gstelement_class,
GST_PAD_TEMPLATE_GET (sink_factory));
gst_element_class_add_pad_template (gstelement_class,
GST_PAD_TEMPLATE_GET (src_video_factory));
}
static void static void
gst_flxdec_class_init (GstFlxDecClass *klass) gst_flxdec_class_init (GstFlxDecClass *klass)
{ {
@ -645,28 +656,24 @@ gst_flxdec_get_property (GObject *object, guint prop_id, GValue *value, GParamSp
} }
static gboolean static gboolean
plugin_init (GModule *module, GstPlugin *plugin) plugin_init (GstPlugin *plugin)
{ {
GstElementFactory *factory;
if (!gst_library_load ("gstbytestream")) if (!gst_library_load ("gstbytestream"))
return FALSE; return FALSE;
factory = gst_element_factory_new("flxdec", GST_TYPE_FLXDEC, &flxdec_details); return gst_element_register (plugin, "flxdec",
g_return_val_if_fail(factory != NULL, FALSE); GST_RANK_PRIMARY, GST_TYPE_FLXDEC);
gst_element_factory_set_rank (factory, GST_ELEMENT_RANK_PRIMARY);
gst_element_factory_add_pad_template (factory, GST_PAD_TEMPLATE_GET (sink_factory));
gst_element_factory_add_pad_template (factory, GST_PAD_TEMPLATE_GET (src_video_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,
"flxdec", "flxdec",
plugin_init "FLX video decoder",
}; plugin_init,
VERSION,
GST_LICENSE,
GST_COPYRIGHT,
GST_PACKAGE,
GST_ORIGIN
)