gst: Update for GST_PLUGIN_DEFINE() API changes
[platform/upstream/gst-plugins-good.git] / gst / dtmf / gstdtmf.c
1
2 #ifdef HAVE_CONFIG_H
3 #include "config.h"
4 #endif
5
6 #include "gstdtmfdetect.h"
7 #include "gstdtmfsrc.h"
8 #include "gstrtpdtmfsrc.h"
9 #include "gstrtpdtmfdepay.h"
10
11
12 static gboolean
13 plugin_init (GstPlugin * plugin)
14 {
15   if (!gst_dtmf_detect_plugin_init (plugin))
16     return FALSE;
17
18   if (!gst_dtmf_src_plugin_init (plugin))
19     return FALSE;
20
21   if (!gst_rtp_dtmf_src_plugin_init (plugin))
22     return FALSE;
23
24   if (!gst_rtp_dtmf_depay_plugin_init (plugin))
25     return FALSE;
26
27   return TRUE;
28 }
29
30 GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
31     GST_VERSION_MINOR,
32     dtmf, "DTMF plugins",
33     plugin_init, VERSION, GST_LICENSE, GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN)