gst/rtp/: Small cleanups.
[platform/upstream/gst-plugins-good.git] / gst / rtp / gstrtp.c
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  */
19
20 #ifdef HAVE_CONFIG_H
21 #include "config.h"
22 #endif
23
24 #include "gstrtpasfdepay.h"
25 #include "gstrtpdepay.h"
26 #include "gstrtppcmupay.h"
27 #include "gstrtppcmapay.h"
28 #include "gstrtppcmadepay.h"
29 #include "gstrtppcmudepay.h"
30 #include "gstrtpgsmpay.h"
31 #include "gstrtpgsmdepay.h"
32 #include "gstrtpamrpay.h"
33 #include "gstrtpamrdepay.h"
34 #include "gstrtpmpapay.h"
35 #include "gstrtpmpadepay.h"
36 #include "gstrtph263pdepay.h"
37 #include "gstrtph263ppay.h"
38 #include "gstrtph263pay.h"
39 #include "gstrtph264depay.h"
40 #include "gstasteriskh263.h"
41 #include "gstrtpmp2tdepay.h"
42 #include "gstrtpmp4vdepay.h"
43 #include "gstrtpmp4vpay.h"
44 #include "gstrtpmp4gdepay.h"
45 #include "gstrtpmp4gpay.h"
46 #include "gstrtpspeexpay.h"
47 #include "gstrtpspeexdepay.h"
48 #include "gstrtpsv3vdepay.h"
49 #include "gstrtpvorbisdepay.h"
50 #include "gstrtpvorbispay.h"
51
52 static gboolean
53 plugin_init (GstPlugin * plugin)
54 {
55   if (!gst_rtp_asf_depay_plugin_init (plugin))
56     return FALSE;
57
58   if (!gst_rtp_depay_plugin_init (plugin))
59     return FALSE;
60
61   if (!gst_rtp_gsm_depay_plugin_init (plugin))
62     return FALSE;
63
64   if (!gst_rtp_gsm_pay_plugin_init (plugin))
65     return FALSE;
66
67   if (!gst_rtp_amr_depay_plugin_init (plugin))
68     return FALSE;
69
70   if (!gst_rtp_amr_pay_plugin_init (plugin))
71     return FALSE;
72
73   if (!gst_rtp_pcma_depay_plugin_init (plugin))
74     return FALSE;
75
76   if (!gst_rtp_pcmu_depay_plugin_init (plugin))
77     return FALSE;
78
79   if (!gst_rtp_pcmu_pay_plugin_init (plugin))
80     return FALSE;
81
82   if (!gst_rtp_pcma_pay_plugin_init (plugin))
83     return FALSE;
84
85   if (!gst_rtp_mpa_depay_plugin_init (plugin))
86     return FALSE;
87
88   if (!gst_rtp_mpa_pay_plugin_init (plugin))
89     return FALSE;
90
91   if (!gst_rtp_h263p_pay_plugin_init (plugin))
92     return FALSE;
93
94   if (!gst_rtp_h263p_depay_plugin_init (plugin))
95     return FALSE;
96
97   if (!gst_rtp_h263_pay_plugin_init (plugin))
98     return FALSE;
99
100   if (!gst_rtp_h264_depay_plugin_init (plugin))
101     return FALSE;
102
103   if (!gst_asteriskh263_plugin_init (plugin))
104     return FALSE;
105
106   if (!gst_rtp_mp2t_depay_plugin_init (plugin))
107     return FALSE;
108
109   if (!gst_rtp_mp4v_pay_plugin_init (plugin))
110     return FALSE;
111
112   if (!gst_rtp_mp4v_depay_plugin_init (plugin))
113     return FALSE;
114
115   if (!gst_rtp_mp4g_depay_plugin_init (plugin))
116     return FALSE;
117
118   if (!gst_rtp_mp4g_pay_plugin_init (plugin))
119     return FALSE;
120
121   if (!gst_rtp_speex_pay_plugin_init (plugin))
122     return FALSE;
123
124   if (!gst_rtp_speex_depay_plugin_init (plugin))
125     return FALSE;
126
127   if (!gst_rtp_sv3v_depay_plugin_init (plugin))
128     return FALSE;
129
130   if (!gst_rtp_vorbis_depay_plugin_init (plugin))
131     return FALSE;
132
133   if (!gst_rtp_vorbis_pay_plugin_init (plugin))
134     return FALSE;
135
136   return TRUE;
137 }
138
139 GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
140     GST_VERSION_MINOR,
141     "rtp",
142     "Real-time protocol plugins",
143     plugin_init, VERSION, "LGPL", GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN);