mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
aacparse: separate plugin registration and rename plugin
This commit is contained in:
parent
7cd3f0a2db
commit
d41ed9693d
3 changed files with 43 additions and 22 deletions
|
@ -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)
|
||||
|
|
|
@ -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
42
gst/aacparse/plugin.c
Normal 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);
|
Loading…
Reference in a new issue