static gboolean
plugin_init (GstPlugin * plugin)
{
- if (!gst_dtmf_src_plugin_init (plugin))
- return FALSE;
+ gboolean ret = FALSE;
- if (!gst_rtp_dtmf_src_plugin_init (plugin))
- return FALSE;
+ ret |= GST_ELEMENT_REGISTER (dtmfsrc, plugin);
+ ret |= GST_ELEMENT_REGISTER (rtpdtmfsrc, plugin);
+ ret |= GST_ELEMENT_REGISTER (rtpdtmfdepay, plugin);
- if (!gst_rtp_dtmf_depay_plugin_init (plugin))
- return FALSE;
-
- return TRUE;
+ return ret;
}
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
#define parent_class gst_dtmf_src_parent_class
G_DEFINE_TYPE (GstDTMFSrc, gst_dtmf_src, GST_TYPE_BASE_SRC);
+GST_ELEMENT_REGISTER_DEFINE (dtmfsrc, "dtmfsrc", GST_RANK_NONE,
+ GST_TYPE_DTMF_SRC);
static void gst_dtmf_src_finalize (GObject * object);
return result;
}
}
-
-gboolean
-gst_dtmf_src_plugin_init (GstPlugin * plugin)
-{
- return gst_element_register (plugin, "dtmfsrc",
- GST_RANK_NONE, GST_TYPE_DTMF_SRC);
-}
GType gst_dtmf_src_get_type (void);
-gboolean gst_dtmf_src_plugin_init (GstPlugin * plugin);
+GST_ELEMENT_REGISTER_DECLARE (dtmfsrc);
G_END_DECLS
#endif /* __GST_DTMF_SRC_H__ */
G_DEFINE_TYPE (GstRtpDTMFDepay, gst_rtp_dtmf_depay,
GST_TYPE_RTP_BASE_DEPAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE (rtpdtmfdepay, "rtpdtmfdepay", GST_RANK_MARGINAL,
+ GST_TYPE_RTP_DTMF_DEPAY);
static void gst_rtp_dtmf_depay_set_property (GObject * object, guint prop_id,
const GValue * value, GParamSpec * pspec);
return NULL;
}
-
-gboolean
-gst_rtp_dtmf_depay_plugin_init (GstPlugin * plugin)
-{
- return gst_element_register (plugin, "rtpdtmfdepay",
- GST_RANK_MARGINAL, GST_TYPE_RTP_DTMF_DEPAY);
-}
GType gst_rtp_dtmf_depay_get_type (void);
-gboolean gst_rtp_dtmf_depay_plugin_init (GstPlugin * plugin);
+GST_ELEMENT_REGISTER_DECLARE (rtpdtmfdepay);
G_END_DECLS
#endif /* __GST_RTP_DTMF_DEPAY_H__ */
G_DEFINE_TYPE (GstRTPDTMFSrc, gst_rtp_dtmf_src, GST_TYPE_BASE_SRC);
+GST_ELEMENT_REGISTER_DEFINE (rtpdtmfsrc, "rtpdtmfsrc", GST_RANK_NONE,
+ GST_TYPE_RTP_DTMF_SRC);
static void gst_rtp_dtmf_src_finalize (GObject * object);
return TRUE;
}
-
-gboolean
-gst_rtp_dtmf_src_plugin_init (GstPlugin * plugin)
-{
- return gst_element_register (plugin, "rtpdtmfsrc",
- GST_RANK_NONE, GST_TYPE_RTP_DTMF_SRC);
-}
GType gst_rtp_dtmf_src_get_type (void);
-gboolean gst_rtp_dtmf_src_plugin_init (GstPlugin * plugin);
-
+GST_ELEMENT_REGISTER_DECLARE (rtpdtmfsrc);
G_END_DECLS
#endif /* __GST_RTP_DTMF_SRC_H__ */