Files
2026-08-24 10:03:24 +08:00

66 lines
1.6 KiB
C

/*
*
* 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., 51 Franklin St, Fifth Floor,
* Boston, MA 02110-1301, USA.
*
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "mpegts/amlmpegts.h"
#include "amltsbase.h"
#include "amltspacketizer.h"
#include "amltsparse.h"
#include "amltsdemux.h"
static gboolean
plugin_init (GstPlugin * plugin)
{
#if 1 //removed since 1.20, but we keep it.
gst_amlmpegts_initialize ();
if (!gst_amltsbase_plugin_init (plugin))
return FALSE;
#endif
if (!gst_amltsparse_plugin_init (plugin))
return FALSE;
if (!gst_amltsdemux_plugin_init (plugin))
return FALSE;
return TRUE;
}
#ifndef VERSION
#define VERSION "0.1.0"
#endif
#ifndef PACKAGE
#define PACKAGE "aml_package"
#endif
#ifndef PACKAGE_NAME
#define PACKAGE_NAME "aml_demux"
#endif
#ifndef GST_PACKAGE_ORIGIN
#define GST_PACKAGE_ORIGIN "http://amlogic.com"
#endif
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
GST_VERSION_MINOR,
amltsdemux,
"aml tsdemux",
plugin_init, VERSION, "LGPL", PACKAGE_NAME, GST_PACKAGE_ORIGIN);