summaryrefslogtreecommitdiffstats
path: root/src/plugin.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugin.c')
-rw-r--r--src/plugin.c46
1 files changed, 35 insertions, 11 deletions
diff --git a/src/plugin.c b/src/plugin.c
index 900fd17..9f99aea 100644
--- a/src/plugin.c
+++ b/src/plugin.c
@@ -1,3 +1,24 @@
+/* $Id$ */
+
+/***
+ This file is part of gst-polyp.
+
+ gst-polyp is free software; you can redistribute it and/or modify
+ it under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation; either version 2.1 of the
+ License, or (at your option) any later version.
+
+ gst-polyp is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with gst-polyp; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
+ USA.
+***/
+
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
@@ -6,20 +27,23 @@
GST_DEBUG_CATEGORY(polyp_debug);
-static gboolean plugin_init (GstPlugin * plugin) {
- if (!gst_library_load("gstaudio"))
- return FALSE;
+static gboolean plugin_init(GstPlugin* plugin) {
- if (!(gst_polypsink_factory_init (plugin)))
+ if (!gst_element_register(plugin, "polypsink", GST_RANK_NONE, GST_TYPE_POLYPSINK))
return FALSE;
-
+
GST_DEBUG_CATEGORY_INIT(polyp_debug, "polyp", 0, "Polypaudio elements");
return TRUE;
}
-GST_PLUGIN_DEFINE(GST_VERSION_MAJOR, GST_VERSION_MINOR,
- "polypsink", "Polypaudio Element Plugins",
- plugin_init,
- VERSION,
- "LGPL",
- "polypaudio", "http://0pointer.de/lennart/projects/gst-polyp/")
+GST_PLUGIN_DEFINE(
+ GST_VERSION_MAJOR,
+ GST_VERSION_MINOR,
+ "polypsink",
+ "Polypaudio Element Plugins",
+ plugin_init,
+ VERSION,
+ "LGPL",
+ "polypaudio",
+ "http://0pointer.de/lennart/projects/gst-polyp/"
+)