fdf57a89b0d78d0c08fb8de87506a23d6142d219
1 /* GStreamer
2 * Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Library General Public License for more details.
13 *
14 * You should have received a copy of the GNU Library General Public
15 * License along with this library; if not, write to the
16 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17 * Boston, MA 02111-1307, USA.
18 */
21 #ifdef HAVE_CONFIG_H
22 #include "config.h"
23 #endif
24 #include "gstmpegparse.h"
25 #include "gstmpegdemux.h"
26 #include "gstrfc2250enc.h"
28 static gboolean
29 plugin_init (GstPlugin *plugin)
30 {
31 /* short-circuit here; this is potentially dangerous since if the second
32 * or third init fails then the whole plug-in will be placed on the register
33 * stack again and the first _init will be called more than once
34 * and wtay wants to use dlclose at some point in the future */
36 if (!gst_library_load ("gstbytestream"))
37 return FALSE;
39 if (!gst_mpeg_parse_plugin_init (plugin) ||
40 !gst_mpeg_demux_plugin_init (plugin) ||
41 !gst_rfc2250_enc_plugin_init (plugin))
42 return FALSE;
44 return TRUE;
45 }
47 GST_PLUGIN_DEFINE (
48 GST_VERSION_MAJOR,
49 GST_VERSION_MINOR,
50 "mpegstream",
51 "MPEG system stream parser",
52 plugin_init,
53 VERSION,
54 "LGPL",
55 GST_COPYRIGHT,
56 GST_PACKAGE,
57 GST_ORIGIN
58 )