1 /*
2 *
3 * This library is free software; you can redistribute it and/or
4 * modify it under the terms of the GNU Library General Public
5 * License as published by the Free Software Foundation; either
6 * version 2 of the License, or (at your option) any later version.
7 *
8 * This library is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * Library General Public License for more details.
12 *
13 * You should have received a copy of the GNU Library General Public
14 * License along with this library; if not, write to the
15 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
16 * Boston, MA 02110-1301, USA.
17 *
18 */
19
20 #ifdef HAVE_CONFIG_H
21 #include "config.h"
22 #endif
23
24 #include <gst/mpegts/mpegts.h>
25 #include "mpegtsbase.h"
26 #include "mpegtspacketizer.h"
27 #include "mpegtsparse.h"
28 #include "tsdemux.h"
29
30
31 static gboolean
plugin_init(GstPlugin * plugin)32 plugin_init (GstPlugin * plugin)
33 {
34 gst_mpegts_initialize ();
35 if (!gst_mpegtsbase_plugin_init (plugin))
36 return FALSE;
37 if (!gst_mpegtsparse_plugin_init (plugin))
38 return FALSE;
39 if (!gst_ts_demux_plugin_init (plugin))
40 return FALSE;
41 return TRUE;
42 }
43
44 GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
45 GST_VERSION_MINOR,
46 mpegtsdemux,
47 "MPEG TS demuxer",
48 plugin_init, VERSION, "LGPL", GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN);
49