From c12fc38d096f0d7b87b89bd6ac3cad4ecf3917f3 Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Sun, 2 Nov 2003 17:13:40 +0000 Subject: etc Original commit message from CVS: etc --- sys/dxr3/dxr3spusink.c | 39 +++++++++++++++------------------------ 1 file changed, 15 insertions(+), 24 deletions(-) (limited to 'sys/dxr3/dxr3spusink.c') diff --git a/sys/dxr3/dxr3spusink.c b/sys/dxr3/dxr3spusink.c index 8d2044e3..b6141bb3 100644 --- a/sys/dxr3/dxr3spusink.c +++ b/sys/dxr3/dxr3spusink.c @@ -41,12 +41,9 @@ /* ElementFactory information. */ static GstElementDetails dxr3spusink_details = { "dxr3/Hollywood+ mpeg decoder board subpicture element", - "video/mpeg", - "GPL", + "Sink/Video", "Feeds subpicture information to Sigma Designs em8300 based boards", - VERSION, - "Martin Soto ", - "(C) 2003", + "Martin Soto " }; @@ -80,6 +77,7 @@ GST_PAD_EVENT_MASK_FUNCTION (dxr3spusink_get_event_mask, static void dxr3spusink_class_init (Dxr3SpuSinkClass *klass); +static void dxr3spusink_base_init (Dxr3SpuSinkClass *klass); static void dxr3spusink_init (Dxr3SpuSink *dxr3spusink); static void dxr3spusink_set_property (GObject *object, @@ -128,7 +126,7 @@ dxr3spusink_get_type (void) if (!dxr3spusink_type) { static const GTypeInfo dxr3spusink_info = { sizeof (Dxr3SpuSinkClass), - NULL, + (GBaseInitFunc)dxr3spusink_base_init, NULL, (GClassInitFunc)dxr3spusink_class_init, NULL, @@ -145,6 +143,17 @@ dxr3spusink_get_type (void) } +static void +dxr3spusink_base_init (Dxr3SpuSinkClass *klass) +{ + GstElementClass *element_class = GST_ELEMENT_CLASS (klass); + + gst_element_class_add_pad_template (element_class, + GST_PAD_TEMPLATE_GET (dxr3spusink_sink_factory)); + gst_element_class_set_details (element_class, + &dxr3spusink_details); +} + static void dxr3spusink_class_init (Dxr3SpuSinkClass *klass) { @@ -539,21 +548,3 @@ dxr3spusink_flushed (Dxr3SpuSink *sink) { /* Do nothing. */ } - - -extern gboolean -dxr3spusink_factory_init (GstPlugin *plugin) -{ - GstElementFactory *factory; - - factory = gst_element_factory_new ("dxr3spusink", - GST_TYPE_DXR3SPUSINK, - &dxr3spusink_details); - g_return_val_if_fail (factory != NULL, FALSE); - gst_element_factory_add_pad_template (factory, - GST_PAD_TEMPLATE_GET (dxr3spusink_sink_factory)); - - gst_plugin_add_feature (plugin, GST_PLUGIN_FEATURE (factory)); - - return TRUE; -} -- cgit v1.2.1