diff options
author | Ronald S. Bultje <rbultje@ronald.bitfreak.net> | 2003-11-02 17:13:40 +0000 |
---|---|---|
committer | Ronald S. Bultje <rbultje@ronald.bitfreak.net> | 2003-11-02 17:13:40 +0000 |
commit | c12fc38d096f0d7b87b89bd6ac3cad4ecf3917f3 (patch) | |
tree | 6965611a629c3c7eea07fa67d6e24f53ab390acd /sys/dxr3/dxr3videosink.c | |
parent | c75664e083f7dbf183d2ff1e80139775fb2b7711 (diff) | |
download | gst-plugins-bad-c12fc38d096f0d7b87b89bd6ac3cad4ecf3917f3.tar.gz gst-plugins-bad-c12fc38d096f0d7b87b89bd6ac3cad4ecf3917f3.tar.bz2 gst-plugins-bad-c12fc38d096f0d7b87b89bd6ac3cad4ecf3917f3.zip |
etc
Original commit message from CVS:
etc
Diffstat (limited to 'sys/dxr3/dxr3videosink.c')
-rw-r--r-- | sys/dxr3/dxr3videosink.c | 39 |
1 files changed, 15 insertions, 24 deletions
diff --git a/sys/dxr3/dxr3videosink.c b/sys/dxr3/dxr3videosink.c index 843f33bc..eb08aae0 100644 --- a/sys/dxr3/dxr3videosink.c +++ b/sys/dxr3/dxr3videosink.c @@ -41,12 +41,9 @@ /* ElementFactory information. */ static GstElementDetails dxr3videosink_details = { "dxr3/Hollywood+ mpeg decoder board video element", - "video/mpeg", - "GPL", + "Sink/Video", "Feeds MPEG2 video to Sigma Designs em8300 based boards", - VERSION, - "Martin Soto <martinsoto@users.sourceforge.net>", - "(C) 2003", + "Martin Soto <martinsoto@users.sourceforge.net>" }; @@ -108,6 +105,7 @@ GST_PAD_EVENT_MASK_FUNCTION (dxr3videosink_get_event_mask, static void dxr3videosink_class_init (Dxr3VideoSinkClass *klass); +static void dxr3videosink_base_init (Dxr3VideoSinkClass *klass); static void dxr3videosink_init (Dxr3VideoSink *dxr3videosink); static void dxr3videosink_set_property (GObject *object, @@ -156,7 +154,7 @@ dxr3videosink_get_type (void) if (!dxr3videosink_type) { static const GTypeInfo dxr3videosink_info = { sizeof (Dxr3VideoSinkClass), - NULL, + (GBaseInitFunc) dxr3videosink_base_init, NULL, (GClassInitFunc) dxr3videosink_class_init, NULL, @@ -175,6 +173,17 @@ dxr3videosink_get_type (void) static void +dxr3videosink_base_init (Dxr3VideoSinkClass *klass) +{ + GstElementClass *element_class = GST_ELEMENT_CLASS (klass); + + gst_element_class_add_pad_template (element_class, + GST_PAD_TEMPLATE_GET (dxr3videosink_sink_factory)); + gst_element_class_set_details (element_class, + &dxr3videosink_details); +} + +static void dxr3videosink_class_init (Dxr3VideoSinkClass *klass) { GObjectClass *gobject_class; @@ -747,21 +756,3 @@ dxr3videosink_flushed (Dxr3VideoSink *sink) { /* Do nothing. */ } - - -extern gboolean -dxr3videosink_factory_init (GstPlugin *plugin) -{ - GstElementFactory *factory; - - factory = gst_element_factory_new ("dxr3videosink", - GST_TYPE_DXR3VIDEOSINK, - &dxr3videosink_details); - g_return_val_if_fail (factory != NULL, FALSE); - gst_element_factory_add_pad_template (factory, - GST_PAD_TEMPLATE_GET (dxr3videosink_sink_factory)); - - gst_plugin_add_feature (plugin, GST_PLUGIN_FEATURE (factory)); - - return TRUE; -} |