diff options
author | Lennart Poettering <lennart@poettering.net> | 2006-05-08 22:08:33 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2006-05-08 22:08:33 +0000 |
commit | f8f641889aafafa817c9c03def299945cd23c018 (patch) | |
tree | 61dd971cc6f2cb95303483fe44717f9e86b6a87c /src/plugin.c | |
parent | cb9e05efb2e784516b369b5bdc01329fe346aff9 (diff) |
update for gstreamer 0.10 and polypaudio 0.8.1
git-svn-id: file:///home/lennart/svn/public/gst-pulse/trunk@14 bb39ca4e-bce3-0310-b5d4-eea78a553289
Diffstat (limited to 'src/plugin.c')
-rw-r--r-- | src/plugin.c | 46 |
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/" +) |