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/dxr3init.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/dxr3init.c')
-rw-r--r-- | sys/dxr3/dxr3init.c | 35 |
1 files changed, 19 insertions, 16 deletions
diff --git a/sys/dxr3/dxr3init.c b/sys/dxr3/dxr3init.c index aa090b21..341523a4 100644 --- a/sys/dxr3/dxr3init.c +++ b/sys/dxr3/dxr3init.c @@ -19,33 +19,36 @@ * Boston, MA 02111-1307, USA. */ +#include "config.h" + #include "dxr3videosink.h" #include "dxr3spusink.h" #include "dxr3audiosink.h" static gboolean -plugin_init (GModule *module, GstPlugin *plugin) +plugin_init (GstPlugin *plugin) { - gboolean ret; - - ret = dxr3videosink_factory_init (plugin); - g_return_val_if_fail (ret == TRUE, FALSE); - - ret = dxr3spusink_factory_init (plugin); - g_return_val_if_fail (ret == TRUE, FALSE); - - ret = dxr3audiosink_factory_init (plugin); - g_return_val_if_fail (ret == TRUE, FALSE); + if (!gst_element_register (plugin, "dxr3videosink", + GST_RANK_NONE, GST_TYPE_DXR3VIDEOSINK) || + !gst_element_register (plugin, "dxr3audiosink", + GST_RANK_NONE, GST_TYPE_DXR3AUDIOSINK) || + !gst_element_register (plugin, "dxr3spusink", + GST_RANK_NONE, GST_TYPE_DXR3SPUSINK)) + return FALSE; return TRUE; } - -GstPluginDesc plugin_desc = { +GST_PLUGIN_DEFINE ( GST_VERSION_MAJOR, GST_VERSION_MINOR, "dxr3", - plugin_init -}; - + "dxr3 mpeg video board elements", + plugin_init, + VERSION, + "GPL", + "(c) 2003 Martin Soto <martinsoto@users.sourceforge.net>", + GST_PACKAGE, + GST_ORIGIN +) |