aacparse: separate plugin registration and rename plugin

This commit is contained in:
Mark Nauwelaerts 2009-11-26 17:04:43 +01:00
parent d80b3e2f3b
commit e3e4ba4f9e
3 changed files with 43 additions and 22 deletions

View file

@ -1,7 +1,7 @@
plugin_LTLIBRARIES = libgstaacparse.la
libgstaacparse_la_SOURCES = \
gstaacparse.c gstbaseparse.c
gstaacparse.c gstbaseparse.c plugin.c
libgstaacparse_la_CFLAGS = $(GST_CFLAGS) $(GST_PLUGINS_BASE_CFLAGS)
libgstaacparse_la_LIBADD = $(GST_BASE_LIBS)

View file

@ -690,24 +690,3 @@ gst_aacparse_is_seekable (GstBaseParse * parse)
/* Not seekable if ADIF header is found */
return (aacparse->header_type != DSPAAC_HEADER_ADIF);
}
/**
* plugin_init:
* @plugin: GstPlugin
*
* Returns: TRUE on success.
*/
static gboolean
plugin_init (GstPlugin * plugin)
{
return gst_element_register (plugin, "aacparse",
GST_RANK_NONE, GST_TYPE_AACPARSE);
}
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
GST_VERSION_MINOR,
"aacparse",
"Advanced Audio Coding Parser",
plugin_init, VERSION, "LGPL", GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN);

42
gst/aacparse/plugin.c Normal file
View file

@ -0,0 +1,42 @@
/* GStreamer audio parsers
* Copyright (C) 2009 Tim-Philipp Müller <tim centricular net>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library 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
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; 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
#include "gstaacparse.h"
static gboolean
plugin_init (GstPlugin * plugin)
{
gboolean ret;
ret = gst_element_register (plugin, "aacparse",
GST_RANK_NONE, GST_TYPE_AACPARSE);
return ret;
}
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
GST_VERSION_MINOR,
"audioparsersbad",
"audioparsers",
plugin_init, VERSION, "LGPL", GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN);