rtp: allow per feature registration
authorStéphane Cerveau <scerveau@collabora.com>
Fri, 12 Feb 2021 12:16:28 +0000 (13:16 +0100)
committerStéphane Cerveau <scerveau@collabora.com>
Mon, 29 Mar 2021 10:45:22 +0000 (12:45 +0200)
Split plugin into features including
dynamic types which can be indiviually
registered during a static build.

More details here:

https://gitlab.freedesktop.org/gstreamer/gst-build/-/merge_requests/199
https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/661

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/876>

191 files changed:
gst/rtp/gstasteriskh263.c
gst/rtp/gstasteriskh263.h
gst/rtp/gstrtp.c
gst/rtp/gstrtpL16depay.c
gst/rtp/gstrtpL16depay.h
gst/rtp/gstrtpL16pay.c
gst/rtp/gstrtpL16pay.h
gst/rtp/gstrtpL24depay.c
gst/rtp/gstrtpL24depay.h
gst/rtp/gstrtpL24pay.c
gst/rtp/gstrtpL24pay.h
gst/rtp/gstrtpL8depay.c
gst/rtp/gstrtpL8depay.h
gst/rtp/gstrtpL8pay.c
gst/rtp/gstrtpL8pay.h
gst/rtp/gstrtpac3depay.c
gst/rtp/gstrtpac3depay.h
gst/rtp/gstrtpac3pay.c
gst/rtp/gstrtpac3pay.h
gst/rtp/gstrtpamrdepay.c
gst/rtp/gstrtpamrdepay.h
gst/rtp/gstrtpamrpay.c
gst/rtp/gstrtpamrpay.h
gst/rtp/gstrtpbvdepay.c
gst/rtp/gstrtpbvdepay.h
gst/rtp/gstrtpbvpay.c
gst/rtp/gstrtpbvpay.h
gst/rtp/gstrtpceltdepay.c
gst/rtp/gstrtpceltdepay.h
gst/rtp/gstrtpceltpay.c
gst/rtp/gstrtpceltpay.h
gst/rtp/gstrtpdvdepay.c
gst/rtp/gstrtpdvdepay.h
gst/rtp/gstrtpdvpay.c
gst/rtp/gstrtpdvpay.h
gst/rtp/gstrtpelement.c [new file with mode: 0644]
gst/rtp/gstrtpelements.h [new file with mode: 0644]
gst/rtp/gstrtpg722depay.c
gst/rtp/gstrtpg722depay.h
gst/rtp/gstrtpg722pay.c
gst/rtp/gstrtpg722pay.h
gst/rtp/gstrtpg723depay.c
gst/rtp/gstrtpg723depay.h
gst/rtp/gstrtpg723pay.c
gst/rtp/gstrtpg723pay.h
gst/rtp/gstrtpg726depay.c
gst/rtp/gstrtpg726depay.h
gst/rtp/gstrtpg726pay.c
gst/rtp/gstrtpg726pay.h
gst/rtp/gstrtpg729depay.c
gst/rtp/gstrtpg729depay.h
gst/rtp/gstrtpg729pay.c
gst/rtp/gstrtpg729pay.h
gst/rtp/gstrtpgsmdepay.c
gst/rtp/gstrtpgsmdepay.h
gst/rtp/gstrtpgsmpay.c
gst/rtp/gstrtpgsmpay.h
gst/rtp/gstrtpgstdepay.c
gst/rtp/gstrtpgstdepay.h
gst/rtp/gstrtpgstpay.c
gst/rtp/gstrtpgstpay.h
gst/rtp/gstrtph261depay.c
gst/rtp/gstrtph261depay.h
gst/rtp/gstrtph261pay.c
gst/rtp/gstrtph261pay.h
gst/rtp/gstrtph263depay.c
gst/rtp/gstrtph263depay.h
gst/rtp/gstrtph263pay.c
gst/rtp/gstrtph263pay.h
gst/rtp/gstrtph263pdepay.c
gst/rtp/gstrtph263pdepay.h
gst/rtp/gstrtph263ppay.c
gst/rtp/gstrtph263ppay.h
gst/rtp/gstrtph264depay.c
gst/rtp/gstrtph264depay.h
gst/rtp/gstrtph264pay.c
gst/rtp/gstrtph264pay.h
gst/rtp/gstrtph265depay.c
gst/rtp/gstrtph265depay.h
gst/rtp/gstrtph265pay.c
gst/rtp/gstrtph265pay.h
gst/rtp/gstrtpilbcdepay.c
gst/rtp/gstrtpilbcdepay.h
gst/rtp/gstrtpilbcpay.c
gst/rtp/gstrtpilbcpay.h
gst/rtp/gstrtpisacdepay.c
gst/rtp/gstrtpisacdepay.h
gst/rtp/gstrtpisacpay.c
gst/rtp/gstrtpisacpay.h
gst/rtp/gstrtpj2kdepay.c
gst/rtp/gstrtpj2kdepay.h
gst/rtp/gstrtpj2kpay.c
gst/rtp/gstrtpj2kpay.h
gst/rtp/gstrtpjpegdepay.c
gst/rtp/gstrtpjpegdepay.h
gst/rtp/gstrtpjpegpay.c
gst/rtp/gstrtpjpegpay.h
gst/rtp/gstrtpklvdepay.c
gst/rtp/gstrtpklvdepay.h
gst/rtp/gstrtpklvpay.c
gst/rtp/gstrtpklvpay.h
gst/rtp/gstrtpldacpay.c
gst/rtp/gstrtpmp1sdepay.c
gst/rtp/gstrtpmp1sdepay.h
gst/rtp/gstrtpmp2tdepay.c
gst/rtp/gstrtpmp2tdepay.h
gst/rtp/gstrtpmp2tpay.c
gst/rtp/gstrtpmp2tpay.h
gst/rtp/gstrtpmp4adepay.c
gst/rtp/gstrtpmp4adepay.h
gst/rtp/gstrtpmp4apay.c
gst/rtp/gstrtpmp4apay.h
gst/rtp/gstrtpmp4gdepay.c
gst/rtp/gstrtpmp4gdepay.h
gst/rtp/gstrtpmp4gpay.c
gst/rtp/gstrtpmp4gpay.h
gst/rtp/gstrtpmp4vdepay.c
gst/rtp/gstrtpmp4vdepay.h
gst/rtp/gstrtpmp4vpay.c
gst/rtp/gstrtpmp4vpay.h
gst/rtp/gstrtpmpadepay.c
gst/rtp/gstrtpmpadepay.h
gst/rtp/gstrtpmpapay.c
gst/rtp/gstrtpmpapay.h
gst/rtp/gstrtpmparobustdepay.c
gst/rtp/gstrtpmparobustdepay.h
gst/rtp/gstrtpmpvdepay.c
gst/rtp/gstrtpmpvdepay.h
gst/rtp/gstrtpmpvpay.c
gst/rtp/gstrtpmpvpay.h
gst/rtp/gstrtpopusdepay.c
gst/rtp/gstrtpopusdepay.h
gst/rtp/gstrtpopuspay.c
gst/rtp/gstrtpopuspay.h
gst/rtp/gstrtppcmadepay.c
gst/rtp/gstrtppcmadepay.h
gst/rtp/gstrtppcmapay.c
gst/rtp/gstrtppcmapay.h
gst/rtp/gstrtppcmudepay.c
gst/rtp/gstrtppcmudepay.h
gst/rtp/gstrtppcmupay.c
gst/rtp/gstrtppcmupay.h
gst/rtp/gstrtpqcelpdepay.c
gst/rtp/gstrtpqcelpdepay.h
gst/rtp/gstrtpqdmdepay.c
gst/rtp/gstrtpqdmdepay.h
gst/rtp/gstrtpreddec.c
gst/rtp/gstrtpredenc.c
gst/rtp/gstrtpsbcdepay.c
gst/rtp/gstrtpsbcdepay.h
gst/rtp/gstrtpsbcpay.c
gst/rtp/gstrtpsbcpay.h
gst/rtp/gstrtpsirendepay.c
gst/rtp/gstrtpsirendepay.h
gst/rtp/gstrtpsirenpay.c
gst/rtp/gstrtpsirenpay.h
gst/rtp/gstrtpspeexdepay.c
gst/rtp/gstrtpspeexdepay.h
gst/rtp/gstrtpspeexpay.c
gst/rtp/gstrtpspeexpay.h
gst/rtp/gstrtpstorage.c
gst/rtp/gstrtpstreamdepay.c
gst/rtp/gstrtpstreamdepay.h
gst/rtp/gstrtpstreampay.c
gst/rtp/gstrtpstreampay.h
gst/rtp/gstrtpsv3vdepay.c
gst/rtp/gstrtpsv3vdepay.h
gst/rtp/gstrtptheoradepay.c
gst/rtp/gstrtptheoradepay.h
gst/rtp/gstrtptheorapay.c
gst/rtp/gstrtptheorapay.h
gst/rtp/gstrtpulpfecdec.c
gst/rtp/gstrtpulpfecenc.c
gst/rtp/gstrtpvorbisdepay.c
gst/rtp/gstrtpvorbisdepay.h
gst/rtp/gstrtpvorbispay.c
gst/rtp/gstrtpvorbispay.h
gst/rtp/gstrtpvp8depay.c
gst/rtp/gstrtpvp8depay.h
gst/rtp/gstrtpvp8pay.c
gst/rtp/gstrtpvp8pay.h
gst/rtp/gstrtpvp9depay.c
gst/rtp/gstrtpvp9depay.h
gst/rtp/gstrtpvp9pay.c
gst/rtp/gstrtpvp9pay.h
gst/rtp/gstrtpvrawdepay.c
gst/rtp/gstrtpvrawdepay.h
gst/rtp/gstrtpvrawpay.c
gst/rtp/gstrtpvrawpay.h
gst/rtp/meson.build
tests/check/meson.build

index 8aa7fd45161e91213be4713cbd9c3b686c4c7f1a..f22c33f31647995262afc2b6065820c8026fb25c 100644 (file)
@@ -24,6 +24,7 @@
 #include <string.h>
 
 #include <gst/rtp/gstrtpbuffer.h>
+#include "gstrtpelements.h"
 #include "gstasteriskh263.h"
 
 #define GST_ASTERISKH263_HEADER_LEN 6
@@ -64,6 +65,8 @@ static GstStateChangeReturn gst_asteriskh263_change_state (GstElement *
 
 #define gst_asteriskh263_parent_class parent_class
 G_DEFINE_TYPE (GstAsteriskh263, gst_asteriskh263, GST_TYPE_ELEMENT);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (asteriskh263, "asteriskh263",
+    GST_RANK_NONE, GST_TYPE_ASTERISK_H263, rtp_element_init (plugin));
 
 static void
 gst_asteriskh263_class_init (GstAsteriskh263Class * klass)
@@ -221,10 +224,3 @@ gst_asteriskh263_change_state (GstElement * element, GstStateChange transition)
    */
   return ret;
 }
-
-gboolean
-gst_asteriskh263_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "asteriskh263",
-      GST_RANK_NONE, GST_TYPE_ASTERISK_H263);
-}
index 1c9523d4c9ae4ba191ed26eac011a75d2e963395..f0416b561f4e539d895948913cb6ee2ac9085027 100644 (file)
@@ -58,8 +58,6 @@ struct _GstAsteriskh263Class
 
 GType gst_asteriskh263_get_type (void);
 
-gboolean gst_asteriskh263_plugin_init (GstPlugin * plugin);
-
 G_END_DECLS
 
 #endif /* __GST_ASTERISK_H263_H__ */
index 83549017ecc389b4de7734fbcbf6694dd5b21359..20f3d85f41eb2e082d9f6f910433deace852e53f 100644 (file)
 
 #include <gst/tag/tag.h>
 
-#include "gstrtputils.h"
+#include "gstrtpelements.h"
 
-#include "gstrtpac3depay.h"
-#include "gstrtpac3pay.h"
-#include "gstrtpbvdepay.h"
-#include "gstrtpbvpay.h"
-#include "gstrtpceltdepay.h"
-#include "gstrtpceltpay.h"
-#include "gstrtpdvdepay.h"
-#include "gstrtpdvpay.h"
-#include "gstrtpgstdepay.h"
-#include "gstrtpgstpay.h"
-#include "gstrtpilbcdepay.h"
-#include "gstrtpilbcpay.h"
-#include "gstrtppcmupay.h"
-#include "gstrtppcmapay.h"
-#include "gstrtppcmadepay.h"
-#include "gstrtppcmudepay.h"
-#include "gstrtpg722depay.h"
-#include "gstrtpg722pay.h"
-#include "gstrtpg723depay.h"
-#include "gstrtpg723pay.h"
-#include "gstrtpg726depay.h"
-#include "gstrtpg726pay.h"
-#include "gstrtpg729depay.h"
-#include "gstrtpg729pay.h"
-#include "gstrtpgsmpay.h"
-#include "gstrtpgsmdepay.h"
-#include "gstrtpamrpay.h"
-#include "gstrtpamrdepay.h"
-#include "gstrtpmpapay.h"
-#include "gstrtpmpadepay.h"
-#include "gstrtpmparobustdepay.h"
-#include "gstrtpmpvdepay.h"
-#include "gstrtpmpvpay.h"
-#include "gstrtpopusdepay.h"
-#include "gstrtpopuspay.h"
-#include "gstrtph261pay.h"
-#include "gstrtph261depay.h"
-#include "gstrtph263pdepay.h"
-#include "gstrtph263ppay.h"
-#include "gstrtph263depay.h"
-#include "gstrtph263pay.h"
-#include "gstrtph264depay.h"
-#include "gstrtph264pay.h"
-#include "gstrtph265depay.h"
-#include "gstrtph265pay.h"
-#include "gstrtpisacdepay.h"
-#include "gstrtpisacpay.h"
-#include "gstrtpj2kdepay.h"
-#include "gstrtpj2kpay.h"
-#include "gstrtpjpegdepay.h"
-#include "gstrtpjpegpay.h"
-#include "gstrtpklvdepay.h"
-#include "gstrtpklvpay.h"
-#include "gstrtpL8depay.h"
-#include "gstrtpL8pay.h"
-#include "gstrtpL16depay.h"
-#include "gstrtpL16pay.h"
-#include "gstrtpL24depay.h"
-#include "gstrtpL24pay.h"
-#include "gstrtpldacpay.h"
-#include "gstasteriskh263.h"
-#include "gstrtpmp1sdepay.h"
-#include "gstrtpmp2tdepay.h"
-#include "gstrtpmp2tpay.h"
-#include "gstrtpmp4vdepay.h"
-#include "gstrtpmp4vpay.h"
-#include "gstrtpmp4adepay.h"
-#include "gstrtpmp4apay.h"
-#include "gstrtpmp4gdepay.h"
-#include "gstrtpmp4gpay.h"
-#include "gstrtpqcelpdepay.h"
-#include "gstrtpqdmdepay.h"
-#include "gstrtpsbcdepay.h"
-#include "gstrtpsbcpay.h"
-#include "gstrtpsirenpay.h"
-#include "gstrtpsirendepay.h"
-#include "gstrtpspeexpay.h"
-#include "gstrtpspeexdepay.h"
-#include "gstrtpsv3vdepay.h"
-#include "gstrtptheoradepay.h"
-#include "gstrtptheorapay.h"
-#include "gstrtpvorbisdepay.h"
-#include "gstrtpvorbispay.h"
-#include "gstrtpvp8depay.h"
-#include "gstrtpvp8pay.h"
-#include "gstrtpvp9depay.h"
-#include "gstrtpvp9pay.h"
-#include "gstrtpvrawdepay.h"
-#include "gstrtpvrawpay.h"
-#include "gstrtpstreampay.h"
-#include "gstrtpstreamdepay.h"
-#include "gstrtpredenc.h"
-#include "gstrtpreddec.h"
-#include "gstrtpulpfecdec.h"
-#include "gstrtpulpfecenc.h"
-#include "gstrtpstorage.h"
 
 static gboolean
 plugin_init (GstPlugin * plugin)
 {
-  gst_tag_image_type_get_type ();
-
-  rtp_quark_meta_tag_video =
-      g_quark_from_static_string (GST_META_TAG_VIDEO_STR);
-  rtp_quark_meta_tag_audio =
-      g_quark_from_static_string (GST_META_TAG_AUDIO_STR);
-
-  if (!gst_rtp_ac3_depay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_ac3_pay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_bv_depay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_bv_pay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_celt_depay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_celt_pay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_dv_depay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_dv_pay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_gst_depay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_gst_pay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_ilbc_pay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_ilbc_depay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_g722_depay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_g722_pay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_g723_depay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_g723_pay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_g726_depay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_g726_pay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_g729_depay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_g729_pay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_gsm_depay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_gsm_pay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_amr_depay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_amr_pay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_pcma_depay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_pcmu_depay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_pcmu_pay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_pcma_pay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_mpa_depay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_mpa_pay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_mpa_robust_depay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_mpv_depay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_mpv_pay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_opus_depay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_opus_pay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_h261_pay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_h261_depay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_h263p_pay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_h263p_depay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_h263_depay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_h263_pay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_h264_depay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_h264_pay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_h265_depay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_h265_pay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_j2k_depay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_j2k_pay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_jpeg_depay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_jpeg_pay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_klv_depay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_klv_pay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_L8_pay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_L8_depay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_L16_pay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_L16_depay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_L24_pay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_L24_depay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_ldac_pay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_asteriskh263_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_mp1s_depay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_mp2t_depay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_mp2t_pay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_mp4v_pay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_mp4v_depay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_mp4a_pay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_mp4a_depay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_mp4g_depay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_mp4g_pay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_qcelp_depay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_qdm2_depay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_sbc_depay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_sbc_pay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_siren_pay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_siren_depay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_speex_pay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_speex_depay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_sv3v_depay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_theora_depay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_theora_pay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_vorbis_depay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_vorbis_pay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_vp8_depay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_vp8_pay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_vp9_depay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_vp9_pay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_vraw_depay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_vraw_pay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_stream_pay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_stream_depay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_isac_pay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_rtp_isac_depay_plugin_init (plugin))
-    return FALSE;
-
-  if (!gst_element_register (plugin, "rtpredenc", GST_RANK_NONE,
-          GST_TYPE_RTP_RED_ENC))
-    return FALSE;
-
-  if (!gst_element_register (plugin, "rtpreddec", GST_RANK_NONE,
-          GST_TYPE_RTP_RED_DEC))
-    return FALSE;
-
-  if (!gst_element_register (plugin, "rtpulpfecdec", GST_RANK_NONE,
-          GST_TYPE_RTP_ULPFEC_DEC))
-    return FALSE;
-
-  if (!gst_element_register (plugin, "rtpulpfecenc", GST_RANK_NONE,
-          GST_TYPE_RTP_ULPFEC_ENC))
-    return FALSE;
-
-  if (!gst_element_register (plugin, "rtpstorage", GST_RANK_NONE,
-          GST_TYPE_RTP_STORAGE))
-    return FALSE;
-
-  return TRUE;
+  gboolean ret = FALSE;
+
+  ret |= GST_ELEMENT_REGISTER (rtpac3depay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtpac3pay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtpbvdepay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtpbvpay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtpceltdepay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtpceltpay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtpdvdepay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtpdvpay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtpgstdepay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtpgstpay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtpilbcpay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtpilbcdepay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtpg722depay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtpg722pay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtpg723depay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtpg723pay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtpg726depay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtpg726pay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtpg729depay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtpg729pay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtpgsmdepay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtpgsmpay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtpamrdepay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtpamrpay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtppcmadepay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtppcmudepay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtppcmupay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtppcmapay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtpmpadepay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtpmpapay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtpmparobustdepay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtpmpvdepay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtpmpvpay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtpopusdepay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtpopuspay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtph261pay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtph261depay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtph263ppay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtph263pdepay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtph263depay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtph263pay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtph264depay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtph264pay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtph265depay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtph265pay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtpj2kdepay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtpj2kpay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtpjpegdepay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtpjpegpay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtpklvdepay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtpklvpay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtpL8pay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtpL8depay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtpL16pay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtpL16depay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtpL24pay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtpL24depay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtpldacpay, plugin);
+  ret |= GST_ELEMENT_REGISTER (asteriskh263, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtpmp1sdepay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtpmp2tdepay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtpmp2tpay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtpmp4vpay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtpmp4vdepay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtpmp4apay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtpmp4adepay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtpmp4gdepay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtpmp4gpay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtpqcelpdepay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtpqdm2depay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtpsbcdepay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtpsbcpay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtpsirenpay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtpsirendepay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtpspeexpay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtpspeexdepay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtpsv3vdepay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtptheoradepay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtptheorapay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtpvorbisdepay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtpvorbispay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtpvp8depay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtpvp8pay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtpvp9depay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtpvp9pay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtpvrawdepay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtpvrawpay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtpstreampay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtpstreamdepay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtpisacpay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtpisacdepay, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtpredenc, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtpreddec, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtpulpfecdec, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtpulpfecenc, plugin);
+  ret |= GST_ELEMENT_REGISTER (rtpstorage, plugin);
+
+  return ret;
 }
 
 GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
index f054a24801872785704a4d9ae9d91ddb2a9db826..aa7e5d03da83f82ff7f104e24c6f64c748479f95 100644 (file)
@@ -42,6 +42,7 @@
 
 #include <gst/audio/audio.h>
 
+#include "gstrtpelements.h"
 #include "gstrtpL16depay.h"
 #include "gstrtpchannels.h"
 #include "gstrtputils.h"
@@ -81,6 +82,8 @@ static GstStaticPadTemplate gst_rtp_L16_depay_sink_template =
 
 #define gst_rtp_L16_depay_parent_class parent_class
 G_DEFINE_TYPE (GstRtpL16Depay, gst_rtp_L16_depay, GST_TYPE_RTP_BASE_DEPAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpL16depay, "rtpL16depay",
+    GST_RANK_SECONDARY, GST_TYPE_RTP_L16_DEPAY, rtp_element_init (plugin));
 
 static gboolean gst_rtp_L16_depay_setcaps (GstRTPBaseDepayload * depayload,
     GstCaps * caps);
@@ -291,10 +294,3 @@ reorder_failed:
     return NULL;
   }
 }
-
-gboolean
-gst_rtp_L16_depay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtpL16depay",
-      GST_RANK_SECONDARY, GST_TYPE_RTP_L16_DEPAY);
-}
index 125d4cd53db6d6b43d4d810444c5e19862eb725a..fac933bb1fd82a28604307e4042b20b6328ca59f 100644 (file)
@@ -60,8 +60,6 @@ struct _GstRtpL16DepayClass
 
 GType gst_rtp_L16_depay_get_type (void);
 
-gboolean gst_rtp_L16_depay_plugin_init (GstPlugin * plugin);
-
 G_END_DECLS
 
 #endif /* __GST_RTP_L16_DEPAY_H__ */
index 7e358d3d0fd27d5a9ac07accede38fee4f0510c0..41a7c0544fbcdb1798c177e6a361cef65fe2c128 100644 (file)
@@ -42,6 +42,7 @@
 #include <gst/audio/audio.h>
 #include <gst/rtp/gstrtpbuffer.h>
 
+#include "gstrtpelements.h"
 #include "gstrtpL16pay.h"
 #include "gstrtpchannels.h"
 
@@ -90,6 +91,8 @@ gst_rtp_L16_pay_handle_buffer (GstRTPBasePayload * basepayload,
 
 #define gst_rtp_L16_pay_parent_class parent_class
 G_DEFINE_TYPE (GstRtpL16Pay, gst_rtp_L16_pay, GST_TYPE_RTP_BASE_AUDIO_PAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpL16pay, "rtpL16pay",
+    GST_RANK_SECONDARY, GST_TYPE_RTP_L16_PAY, rtp_element_init (plugin));
 
 static void
 gst_rtp_L16_pay_class_init (GstRtpL16PayClass * klass)
@@ -254,10 +257,3 @@ gst_rtp_L16_pay_handle_buffer (GstRTPBasePayload * basepayload,
   return GST_RTP_BASE_PAYLOAD_CLASS (parent_class)->handle_buffer (basepayload,
       buffer);
 }
-
-gboolean
-gst_rtp_L16_pay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtpL16pay",
-      GST_RANK_SECONDARY, GST_TYPE_RTP_L16_PAY);
-}
index f4f3702e1b703651c30d9c3f772626c51ce6e215..b3078db05ef6e564b7dc319ccca13cdec7b3f331 100644 (file)
@@ -56,8 +56,6 @@ struct _GstRtpL16PayClass
 
 GType gst_rtp_L16_pay_get_type (void);
 
-gboolean gst_rtp_L16_pay_plugin_init (GstPlugin * plugin);
-
 G_END_DECLS
 
 #endif /* __GST_RTP_L16_PAY_H__ */
index 448dac022bae95c012fd2ae9f1b39fb8f40aaaff..e39fe7c2f4bd1ed3b1719f688de539d94f5e0d59 100644 (file)
@@ -42,6 +42,7 @@
 
 #include <gst/audio/audio.h>
 
+#include "gstrtpelements.h"
 #include "gstrtpL24depay.h"
 #include "gstrtpchannels.h"
 #include "gstrtputils.h"
@@ -70,6 +71,8 @@ GST_STATIC_PAD_TEMPLATE ("sink",
 
 #define gst_rtp_L24_depay_parent_class parent_class
 G_DEFINE_TYPE (GstRtpL24Depay, gst_rtp_L24_depay, GST_TYPE_RTP_BASE_DEPAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpL24depay, "rtpL24depay",
+    GST_RANK_SECONDARY, GST_TYPE_RTP_L24_DEPAY, rtp_element_init (plugin));
 
 static gboolean gst_rtp_L24_depay_setcaps (GstRTPBaseDepayload * depayload,
     GstCaps * caps);
@@ -256,10 +259,3 @@ reorder_failed:
     return NULL;
   }
 }
-
-gboolean
-gst_rtp_L24_depay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtpL24depay",
-      GST_RANK_SECONDARY, GST_TYPE_RTP_L24_DEPAY);
-}
index c4e00e6f231b496b1dbdf4c84ef17b80e6aef474..411adf91079266db7be53a605a0efaec56a62e13 100644 (file)
@@ -60,8 +60,6 @@ struct _GstRtpL24DepayClass
 
 GType gst_rtp_L24_depay_get_type (void);
 
-gboolean gst_rtp_L24_depay_plugin_init (GstPlugin * plugin);
-
 G_END_DECLS
 
 #endif /* __GST_RTP_L24_DEPAY_H__ */
index d2ad72535589fa5331f7bcda0758828c60f190c6..aa8fc22734c38771c0d46de1d8770925bb7df45f 100644 (file)
@@ -42,6 +42,7 @@
 #include <gst/audio/audio.h>
 #include <gst/rtp/gstrtpbuffer.h>
 
+#include "gstrtpelements.h"
 #include "gstrtpL24pay.h"
 #include "gstrtpchannels.h"
 
@@ -79,6 +80,8 @@ gst_rtp_L24_pay_handle_buffer (GstRTPBasePayload * basepayload,
 
 #define gst_rtp_L24_pay_parent_class parent_class
 G_DEFINE_TYPE (GstRtpL24Pay, gst_rtp_L24_pay, GST_TYPE_RTP_BASE_AUDIO_PAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpL24pay, "rtpL24pay",
+    GST_RANK_SECONDARY, GST_TYPE_RTP_L24_PAY, rtp_element_init (plugin));
 
 static void
 gst_rtp_L24_pay_class_init (GstRtpL24PayClass * klass)
@@ -235,10 +238,3 @@ gst_rtp_L24_pay_handle_buffer (GstRTPBasePayload * basepayload,
   return GST_RTP_BASE_PAYLOAD_CLASS (parent_class)->handle_buffer (basepayload,
       buffer);
 }
-
-gboolean
-gst_rtp_L24_pay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtpL24pay",
-      GST_RANK_SECONDARY, GST_TYPE_RTP_L24_PAY);
-}
index 47395ad164c3245489a57124dab344b2e1d234ff..4dd64dbef716b2577ef93f3adf225d61634d6c80 100644 (file)
@@ -56,8 +56,6 @@ struct _GstRtpL24PayClass
 
 GType gst_rtp_L24_pay_get_type (void);
 
-gboolean gst_rtp_L24_pay_plugin_init (GstPlugin * plugin);
-
 G_END_DECLS
 
 #endif /* __GST_RTP_L24_PAY_H__ */
index 121a749af9b6e155dab2014aae9829aafde727c9..f1c0fe302484200de45fa28469ce0bfdecd7fbf8 100644 (file)
@@ -42,6 +42,7 @@
 
 #include <gst/audio/audio.h>
 
+#include "gstrtpelements.h"
 #include "gstrtpL8depay.h"
 #include "gstrtpchannels.h"
 
@@ -73,6 +74,10 @@ static GstStaticPadTemplate gst_rtp_L8_depay_sink_template =
 #define gst_rtp_L8_depay_parent_class parent_class
 G_DEFINE_TYPE (GstRtpL8Depay, gst_rtp_L8_depay, GST_TYPE_RTP_BASE_DEPAYLOAD);
 
+
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpL8depay, "rtpL8depay",
+    GST_RANK_SECONDARY, GST_TYPE_RTP_L8_DEPAY, rtp_element_init (plugin));
+
 static gboolean gst_rtp_L8_depay_setcaps (GstRTPBaseDepayload * depayload,
     GstCaps * caps);
 static GstBuffer *gst_rtp_L8_depay_process (GstRTPBaseDepayload * depayload,
@@ -258,10 +263,3 @@ reorder_failed:
     return NULL;
   }
 }
-
-gboolean
-gst_rtp_L8_depay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtpL8depay",
-      GST_RANK_SECONDARY, GST_TYPE_RTP_L8_DEPAY);
-}
index a2d9bec598491e3b45d8d2af61dbf62c18ea97ec..589e9fb27f966e727122178657ec7235352be67f 100644 (file)
@@ -58,8 +58,6 @@ struct _GstRtpL8DepayClass
 
 GType gst_rtp_L8_depay_get_type (void);
 
-gboolean gst_rtp_L8_depay_plugin_init (GstPlugin * plugin);
-
 G_END_DECLS
 
 #endif /* __GST_RTP_L8_DEPAY_H__ */
index 6662cda916db814da606afb12eff72a55dd66b96..b7a39e89f6731274820ede263b643f79488ffe09 100644 (file)
@@ -42,6 +42,7 @@
 #include <gst/audio/audio.h>
 #include <gst/rtp/gstrtpbuffer.h>
 
+#include "gstrtpelements.h"
 #include "gstrtpL8pay.h"
 #include "gstrtpchannels.h"
 
@@ -80,6 +81,10 @@ gst_rtp_L8_pay_handle_buffer (GstRTPBasePayload * basepayload,
 #define gst_rtp_L8_pay_parent_class parent_class
 G_DEFINE_TYPE (GstRtpL8Pay, gst_rtp_L8_pay, GST_TYPE_RTP_BASE_AUDIO_PAYLOAD);
 
+
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpL8pay, "rtpL8pay", GST_RANK_SECONDARY,
+    GST_TYPE_RTP_L8_PAY, rtp_element_init (plugin));
+
 static void
 gst_rtp_L8_pay_class_init (GstRtpL8PayClass * klass)
 {
@@ -234,10 +239,3 @@ gst_rtp_L8_pay_handle_buffer (GstRTPBasePayload * basepayload,
   return GST_RTP_BASE_PAYLOAD_CLASS (parent_class)->handle_buffer (basepayload,
       buffer);
 }
-
-gboolean
-gst_rtp_L8_pay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtpL8pay",
-      GST_RANK_SECONDARY, GST_TYPE_RTP_L8_PAY);
-}
index 183eb2fcf408e02434bd50c320540e9e01e3a4c5..bebd724f7190f06bbaea5cb2b0c2cc740cbc9b0e 100644 (file)
@@ -57,8 +57,6 @@ struct _GstRtpL8PayClass
 
 GType gst_rtp_L8_pay_get_type (void);
 
-gboolean gst_rtp_L8_pay_plugin_init (GstPlugin * plugin);
-
 G_END_DECLS
 
 #endif /* __GST_RTP_L8_PAY_H__ */
index 54339f34300353021b57872ffca029e40bcdd4e2..68c23e2768267623986c6b85a268ff1248e92398 100644 (file)
@@ -41,6 +41,7 @@
 #include <gst/audio/audio.h>
 
 #include <string.h>
+#include "gstrtpelements.h"
 #include "gstrtpac3depay.h"
 #include "gstrtputils.h"
 
@@ -65,6 +66,8 @@ GST_STATIC_PAD_TEMPLATE ("sink",
     );
 
 G_DEFINE_TYPE (GstRtpAC3Depay, gst_rtp_ac3_depay, GST_TYPE_RTP_BASE_DEPAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpac3depay, "rtpac3depay",
+    GST_RANK_SECONDARY, GST_TYPE_RTP_AC3_DEPAY, rtp_element_init (plugin));
 
 static gboolean gst_rtp_ac3_depay_setcaps (GstRTPBaseDepayload * depayload,
     GstCaps * caps);
@@ -171,10 +174,3 @@ empty_packet:
     return NULL;
   }
 }
-
-gboolean
-gst_rtp_ac3_depay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtpac3depay",
-      GST_RANK_SECONDARY, GST_TYPE_RTP_AC3_DEPAY);
-}
index 294bb12c421cf92cb320d527712b5ee5f2297569..62478f9c8277058b0e18e9f46c02949597c5218b 100644 (file)
@@ -51,8 +51,6 @@ struct _GstRtpAC3DepayClass
 
 GType gst_rtp_ac3_depay_get_type (void);
 
-gboolean gst_rtp_ac3_depay_plugin_init (GstPlugin * plugin);
-
 G_END_DECLS
 
 #endif /* __GST_RTP_AC3_DEPAY_H__ */
index 1feccedf4ae154b3dd714e1b9bcb29aaf3f364d0..efce5b54b26401a533eadde7983db358f86f9339 100644 (file)
@@ -42,6 +42,7 @@
 #include <gst/rtp/gstrtpbuffer.h>
 #include <gst/audio/audio.h>
 
+#include "gstrtpelements.h"
 #include "gstrtpac3pay.h"
 #include "gstrtputils.h"
 
@@ -81,6 +82,8 @@ static GstFlowReturn gst_rtp_ac3_pay_handle_buffer (GstRTPBasePayload * payload,
 
 #define gst_rtp_ac3_pay_parent_class parent_class
 G_DEFINE_TYPE (GstRtpAC3Pay, gst_rtp_ac3_pay, GST_TYPE_RTP_BASE_PAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpac3pay, "rtpac3pay",
+    GST_RANK_SECONDARY, GST_TYPE_RTP_AC3_PAY, rtp_element_init (plugin));
 
 static void
 gst_rtp_ac3_pay_class_init (GstRtpAC3PayClass * klass)
@@ -470,10 +473,3 @@ gst_rtp_ac3_pay_change_state (GstElement * element, GstStateChange transition)
   }
   return ret;
 }
-
-gboolean
-gst_rtp_ac3_pay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtpac3pay",
-      GST_RANK_SECONDARY, GST_TYPE_RTP_AC3_PAY);
-}
index c131eac132877384b715022bd2b3d33d5f808ba8..918a250e49fc58bf0bd46466b83691ad3ef47381 100644 (file)
@@ -57,8 +57,6 @@ struct _GstRtpAC3PayClass
 
 GType gst_rtp_ac3_pay_get_type (void);
 
-gboolean gst_rtp_ac3_pay_plugin_init (GstPlugin * plugin);
-
 G_END_DECLS
 
 #endif /* __GST_RTP_AC3_PAY_H__ */
index de0275801a50ac4f60554cef032b522b06660cd2..08e64e5180655c17f890349c162e28a51439686b 100644 (file)
@@ -48,6 +48,7 @@
 
 #include <stdlib.h>
 #include <string.h>
+#include "gstrtpelements.h"
 #include "gstrtpamrdepay.h"
 #include "gstrtputils.h"
 
@@ -130,6 +131,8 @@ static GstBuffer *gst_rtp_amr_depay_process (GstRTPBaseDepayload * depayload,
 
 #define gst_rtp_amr_depay_parent_class parent_class
 G_DEFINE_TYPE (GstRtpAMRDepay, gst_rtp_amr_depay, GST_TYPE_RTP_BASE_DEPAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpamrdepay, "rtpamrdepay",
+    GST_RANK_SECONDARY, GST_TYPE_RTP_AMR_DEPAY, rtp_element_init (plugin));
 
 static void
 gst_rtp_amr_depay_class_init (GstRtpAMRDepayClass * klass)
@@ -469,10 +472,3 @@ bad_packet:
     return NULL;
   }
 }
-
-gboolean
-gst_rtp_amr_depay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtpamrdepay",
-      GST_RANK_SECONDARY, GST_TYPE_RTP_AMR_DEPAY);
-}
index 0b806345d782564c087e4de8eb1f1d5181b0f3f8..b1ebe4f8f05dcfa84a302de25640dd8006295759 100644 (file)
@@ -70,8 +70,6 @@ struct _GstRtpAMRDepayClass
 
 GType gst_rtp_amr_depay_get_type (void);
 
-gboolean gst_rtp_amr_depay_plugin_init (GstPlugin * plugin);
-
 G_END_DECLS
 
 #endif /* __GST_RTP_AMR_DEPAY_H__ */
index 828a7189f9dd59a7010d9e07861546e754717d03..bf92a5483bc434647a57199381fd85ec59a56fe0 100644 (file)
@@ -55,6 +55,7 @@
 #include <gst/rtp/gstrtpbuffer.h>
 #include <gst/audio/audio.h>
 
+#include "gstrtpelements.h"
 #include "gstrtpamrpay.h"
 #include "gstrtputils.h"
 
@@ -113,6 +114,8 @@ gst_rtp_amr_pay_change_state (GstElement * element, GstStateChange transition);
 
 #define gst_rtp_amr_pay_parent_class parent_class
 G_DEFINE_TYPE (GstRtpAMRPay, gst_rtp_amr_pay, GST_TYPE_RTP_BASE_PAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpamrpay, "rtpamrpay",
+    GST_RANK_SECONDARY, GST_TYPE_RTP_AMR_PAY, rtp_element_init (plugin));
 
 static void
 gst_rtp_amr_pay_class_init (GstRtpAMRPayClass * klass)
@@ -456,10 +459,3 @@ gst_rtp_amr_pay_change_state (GstElement * element, GstStateChange transition)
 
   return ret;
 }
-
-gboolean
-gst_rtp_amr_pay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtpamrpay",
-      GST_RANK_SECONDARY, GST_TYPE_RTP_AMR_PAY);
-}
index a3df1ce6320dced17464135cd8f446ffef1d4efa..b6e21483e270e4a74f7e00fda69a0cec4a7d435f 100644 (file)
@@ -63,8 +63,6 @@ struct _GstRtpAMRPayClass
 
 GType gst_rtp_amr_pay_get_type (void);
 
-gboolean gst_rtp_amr_pay_plugin_init (GstPlugin * plugin);
-
 G_END_DECLS
 
 #endif /* __GST_RTP_AMR_PAY_H__ */
index 625bb3731fff4b6dd9c951a800f0410fc4c6915d..98cff92fd114980a32a1708cdac47c5da2759c10 100644 (file)
@@ -35,6 +35,7 @@
 
 #include <gst/rtp/gstrtpbuffer.h>
 #include <gst/audio/audio.h>
+#include "gstrtpelements.h"
 #include "gstrtpbvdepay.h"
 #include "gstrtputils.h"
 
@@ -65,6 +66,8 @@ static gboolean gst_rtp_bv_depay_setcaps (GstRTPBaseDepayload * depayload,
 
 #define gst_rtp_bv_depay_parent_class parent_class
 G_DEFINE_TYPE (GstRTPBVDepay, gst_rtp_bv_depay, GST_TYPE_RTP_BASE_DEPAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpbvdepay, "rtpbvdepay",
+    GST_RANK_SECONDARY, GST_TYPE_RTP_BV_DEPAY, rtp_element_init (plugin));
 
 static void
 gst_rtp_bv_depay_class_init (GstRTPBVDepayClass * klass)
@@ -182,10 +185,3 @@ gst_rtp_bv_depay_process (GstRTPBaseDepayload * depayload, GstRTPBuffer * rtp)
 
   return outbuf;
 }
-
-gboolean
-gst_rtp_bv_depay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtpbvdepay",
-      GST_RANK_SECONDARY, GST_TYPE_RTP_BV_DEPAY);
-}
index f130682c0a74cb038bab87c79b2af2707d63f99f..9a9ea7c4071ddd95e9df076c40f8e891877c3ea4 100644 (file)
@@ -53,8 +53,6 @@ struct _GstRTPBVDepayClass
 
 GType gst_rtp_bv_depay_get_type (void);
 
-gboolean gst_rtp_bv_depay_plugin_init (GstPlugin * plugin);
-
 G_END_DECLS
 
 #endif /* __GST_RTP_BV_DEPAY_H__ */
index a396d2642c5e4761a3ff6e02e93fbf2d5f773dfa..a70f3c2379103b5d1d35513093c8ef9ba9af8f33 100644 (file)
@@ -34,6 +34,7 @@
 #include <string.h>
 
 #include <gst/rtp/gstrtpbuffer.h>
+#include "gstrtpelements.h"
 #include "gstrtpbvpay.h"
 
 GST_DEBUG_CATEGORY_STATIC (rtpbvpay_debug);
@@ -69,6 +70,8 @@ static gboolean gst_rtp_bv_pay_sink_setcaps (GstRTPBasePayload * payload,
 
 #define gst_rtp_bv_pay_parent_class parent_class
 G_DEFINE_TYPE (GstRTPBVPay, gst_rtp_bv_pay, GST_TYPE_RTP_BASE_AUDIO_PAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpbvpay, "rtpbvpay", GST_RANK_SECONDARY,
+    GST_TYPE_RTP_BV_PAY, rtp_element_init (plugin));
 
 static void
 gst_rtp_bv_pay_class_init (GstRTPBVPayClass * klass)
@@ -231,10 +234,3 @@ gst_rtp_bv_pay_sink_getcaps (GstRTPBasePayload * rtppayload, GstPad * pad,
 
   return caps;
 }
-
-gboolean
-gst_rtp_bv_pay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtpbvpay",
-      GST_RANK_SECONDARY, GST_TYPE_RTP_BV_PAY);
-}
index 09766ccaabff9d69905be991c9044d29d6781e40..afb3485b98d802369b0eacdc3abc15512eea4af1 100644 (file)
@@ -53,8 +53,6 @@ struct _GstRTPBVPayClass
 
 GType gst_rtp_bv_pay_get_type (void);
 
-gboolean gst_rtp_bv_pay_plugin_init (GstPlugin * plugin);
-
 G_END_DECLS
 
 #endif /* __GST_RTP_BV_PAY_H__ */
index 97c17f013d0c17a778b492bd8d76fd7506dce9ef..9054af7c66132d9a1dbca766b32d472130f37a97 100644 (file)
@@ -26,6 +26,7 @@
 #include <gst/rtp/gstrtpbuffer.h>
 #include <gst/audio/audio.h>
 
+#include "gstrtpelements.h"
 #include "gstrtpceltdepay.h"
 #include "gstrtputils.h"
 
@@ -74,7 +75,8 @@ static gboolean gst_rtp_celt_depay_setcaps (GstRTPBaseDepayload * depayload,
 #define gst_rtp_celt_depay_parent_class parent_class
 G_DEFINE_TYPE (GstRtpCELTDepay, gst_rtp_celt_depay,
     GST_TYPE_RTP_BASE_DEPAYLOAD);
-
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpceltdepay, "rtpceltdepay",
+    GST_RANK_SECONDARY, GST_TYPE_RTP_CELT_DEPAY, rtp_element_init (plugin));
 static void
 gst_rtp_celt_depay_class_init (GstRtpCELTDepayClass * klass)
 {
@@ -267,10 +269,3 @@ gst_rtp_celt_depay_process (GstRTPBaseDepayload * depayload, GstRTPBuffer * rtp)
 
   return NULL;
 }
-
-gboolean
-gst_rtp_celt_depay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtpceltdepay",
-      GST_RANK_SECONDARY, GST_TYPE_RTP_CELT_DEPAY);
-}
index 0905c681d738241c80721b5521d8734e71dc996a..eb4bc30999773c8b0088bc2e14fb39ea8d70d4a2 100644 (file)
@@ -47,8 +47,6 @@ struct _GstRtpCELTDepayClass
 
 GType gst_rtp_celt_depay_get_type (void);
 
-gboolean gst_rtp_celt_depay_plugin_init (GstPlugin * plugin);
-
 G_END_DECLS
 
 #endif /* __GST_RTP_CELT_DEPAY_H__ */
index a29d23b17072accfea2f869bb405b35f49205e2f..18ef5564025a43be4470231f7658584fd2df1279 100644 (file)
@@ -26,6 +26,7 @@
 #include <gst/rtp/gstrtpbuffer.h>
 #include <gst/audio/audio.h>
 
+#include "gstrtpelements.h"
 #include "gstrtpceltpay.h"
 #include "gstrtputils.h"
 
@@ -66,6 +67,8 @@ static GstFlowReturn gst_rtp_celt_pay_handle_buffer (GstRTPBasePayload *
 
 #define gst_rtp_celt_pay_parent_class parent_class
 G_DEFINE_TYPE (GstRtpCELTPay, gst_rtp_celt_pay, GST_TYPE_RTP_BASE_PAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpceltpay, "rtpceltpay",
+    GST_RANK_SECONDARY, GST_TYPE_RTP_CELT_PAY, rtp_element_init (plugin));
 
 static void
 gst_rtp_celt_pay_class_init (GstRtpCELTPayClass * klass)
@@ -495,10 +498,3 @@ gst_rtp_celt_pay_change_state (GstElement * element, GstStateChange transition)
   }
   return ret;
 }
-
-gboolean
-gst_rtp_celt_pay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtpceltpay",
-      GST_RANK_SECONDARY, GST_TYPE_RTP_CELT_PAY);
-}
index dcdd0ecc566e4c119000312e7268c7cc9a3e2132..452c124523983dadfe971f756735e929ead73726 100644 (file)
@@ -55,8 +55,6 @@ struct _GstRtpCELTPayClass
 
 GType gst_rtp_celt_pay_get_type (void);
 
-gboolean gst_rtp_celt_pay_plugin_init (GstPlugin * plugin);
-
 G_END_DECLS
 
 #endif /* __GST_RTP_CELT_PAY_H__ */
index 12297f0045f70ef6f5e9ddcb7b847a7249fe3578..6558dddd19c160f1ffd78f3d22eab99981bbfcc2 100644 (file)
@@ -33,6 +33,8 @@
 #include <gst/gst.h>
 
 #include "gstrtpdvdepay.h"
+
+#include "gstrtpelements.h"
 #include "gstrtputils.h"
 
 GST_DEBUG_CATEGORY (rtpdvdepay_debug);
@@ -82,7 +84,8 @@ static gboolean gst_rtp_dv_depay_setcaps (GstRTPBaseDepayload * depayload,
 
 #define gst_rtp_dv_depay_parent_class parent_class
 G_DEFINE_TYPE (GstRTPDVDepay, gst_rtp_dv_depay, GST_TYPE_RTP_BASE_DEPAYLOAD);
-
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpdvdepay, "rtpdvdepay",
+    GST_RANK_SECONDARY, GST_TYPE_RTP_DV_DEPAY, rtp_element_init (plugin));
 
 static void
 gst_rtp_dv_depay_class_init (GstRTPDVDepayClass * klass)
@@ -416,10 +419,3 @@ gst_rtp_dv_depay_change_state (GstElement * element, GstStateChange transition)
   }
   return ret;
 }
-
-gboolean
-gst_rtp_dv_depay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtpdvdepay",
-      GST_RANK_SECONDARY, GST_TYPE_RTP_DV_DEPAY);
-}
index 1ce5b9715a40711b7f6f5b486d093a248917ebef..3cd9214600beeb57c298a6013302cebe0fb450cf 100644 (file)
@@ -59,8 +59,6 @@ struct _GstRTPDVDepayClass
 
 GType gst_rtp_dv_depay_get_type (void);
 
-gboolean gst_rtp_dv_depay_plugin_init (GstPlugin * plugin);
-
 G_END_DECLS
 
 #endif /* __GSTRTPDVDEPAY_H__ */
index 3600251ce91709c78107c412908cb5e8d54534c5..2a0e92e66d72c055728bdca1149bfe5b78079d82 100644 (file)
@@ -26,6 +26,7 @@
 #include <string.h>
 #include <gst/rtp/gstrtpbuffer.h>
 
+#include "gstrtpelements.h"
 #include "gstrtpdvpay.h"
 #include "gstrtputils.h"
 
@@ -97,6 +98,8 @@ static void gst_dv_pay_get_property (GObject * object,
 
 #define gst_rtp_dv_pay_parent_class parent_class
 G_DEFINE_TYPE (GstRTPDVPay, gst_rtp_dv_pay, GST_TYPE_RTP_BASE_PAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpdvpay, "rtpdvpay", GST_RANK_SECONDARY,
+    GST_TYPE_RTP_DV_PAY, rtp_element_init (plugin));
 
 static void
 gst_rtp_dv_pay_class_init (GstRTPDVPayClass * klass)
@@ -392,10 +395,3 @@ beach:
 
   return ret;
 }
-
-gboolean
-gst_rtp_dv_pay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtpdvpay",
-      GST_RANK_SECONDARY, GST_TYPE_RTP_DV_PAY);
-}
index 4c250a840ece9b0a4f0bb3080ef319462bb15f69..def525b2ca3ef36a94544f24ec9571b7ee0745f5 100644 (file)
@@ -62,8 +62,6 @@ struct _GstRTPDVPayClass
 
 GType gst_rtp_dv_pay_get_type (void);
 
-gboolean gst_rtp_dv_pay_plugin_init (GstPlugin * plugin);
-
 G_END_DECLS
 
 #endif /* __GSTRTPDVPAY_H__ */
diff --git a/gst/rtp/gstrtpelement.c b/gst/rtp/gstrtpelement.c
new file mode 100644 (file)
index 0000000..cd6d883
--- /dev/null
@@ -0,0 +1,46 @@
+/* GStreamer
+ * Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
+ * Copyright (C) 2020 Huawei Technologies Co., Ltd.
+ *   @Author: Julian Bouzas <julian.bouzas@collabora.com>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <gst/tag/tag.h>
+#include <gst/video/video.h>
+#include <gst/audio/audio.h>
+
+#include "gstrtpelements.h"
+#include "gstrtputils.h"
+
+
+void
+rtp_element_init (GstPlugin * plugin)
+{
+  static gsize res = FALSE;
+  if (g_once_init_enter (&res)) {
+    gst_tag_image_type_get_type ();
+    rtp_quark_meta_tag_video =
+        g_quark_from_static_string (GST_META_TAG_VIDEO_STR);
+    rtp_quark_meta_tag_audio =
+        g_quark_from_static_string (GST_META_TAG_AUDIO_STR);
+    g_once_init_leave (&res, TRUE);
+  }
+}
diff --git a/gst/rtp/gstrtpelements.h b/gst/rtp/gstrtpelements.h
new file mode 100644 (file)
index 0000000..5f71f16
--- /dev/null
@@ -0,0 +1,133 @@
+/* GStreamer
+ * Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
+ * Copyright (C) 2020 Huawei Technologies Co., Ltd.
+ *   @Author: Julian Bouzas <julian.bouzas@collabora.com>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+
+#ifndef __GST_RTP_ELEMENTS_H__
+#define __GST_RTP_ELEMENTS_H__
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <gst/gst.h>
+
+G_BEGIN_DECLS
+
+void rtp_element_init (GstPlugin * plugin);
+
+GST_ELEMENT_REGISTER_DECLARE (rtpac3depay);
+GST_ELEMENT_REGISTER_DECLARE (rtpac3pay);
+GST_ELEMENT_REGISTER_DECLARE (rtpbvdepay);
+GST_ELEMENT_REGISTER_DECLARE (rtpbvpay);
+GST_ELEMENT_REGISTER_DECLARE (rtpceltdepay);
+GST_ELEMENT_REGISTER_DECLARE (rtpceltpay);
+GST_ELEMENT_REGISTER_DECLARE (rtpdvdepay);
+GST_ELEMENT_REGISTER_DECLARE (rtpdvpay);
+GST_ELEMENT_REGISTER_DECLARE (rtpgstdepay);
+GST_ELEMENT_REGISTER_DECLARE (rtpgstpay);
+GST_ELEMENT_REGISTER_DECLARE (rtpilbcpay);
+GST_ELEMENT_REGISTER_DECLARE (rtpilbcdepay);
+GST_ELEMENT_REGISTER_DECLARE (rtpg722depay);
+GST_ELEMENT_REGISTER_DECLARE (rtpg722pay);
+GST_ELEMENT_REGISTER_DECLARE (rtpg723depay);
+GST_ELEMENT_REGISTER_DECLARE (rtpg723pay);
+GST_ELEMENT_REGISTER_DECLARE (rtpg726depay);
+GST_ELEMENT_REGISTER_DECLARE (rtpg726pay);
+GST_ELEMENT_REGISTER_DECLARE (rtpg729depay);
+GST_ELEMENT_REGISTER_DECLARE (rtpg729pay);
+GST_ELEMENT_REGISTER_DECLARE (rtpgsmdepay);
+GST_ELEMENT_REGISTER_DECLARE (rtpgsmpay);
+GST_ELEMENT_REGISTER_DECLARE (rtpamrdepay);
+GST_ELEMENT_REGISTER_DECLARE (rtpamrpay);
+GST_ELEMENT_REGISTER_DECLARE (rtppcmadepay);
+GST_ELEMENT_REGISTER_DECLARE (rtppcmudepay);
+GST_ELEMENT_REGISTER_DECLARE (rtppcmupay);
+GST_ELEMENT_REGISTER_DECLARE (rtppcmapay);
+GST_ELEMENT_REGISTER_DECLARE (rtpmpadepay);
+GST_ELEMENT_REGISTER_DECLARE (rtpmpapay);
+GST_ELEMENT_REGISTER_DECLARE (rtpmparobustdepay);
+GST_ELEMENT_REGISTER_DECLARE (rtpmpvdepay);
+GST_ELEMENT_REGISTER_DECLARE (rtpmpvpay);
+GST_ELEMENT_REGISTER_DECLARE (rtpopusdepay);
+GST_ELEMENT_REGISTER_DECLARE (rtpopuspay);
+GST_ELEMENT_REGISTER_DECLARE (rtph261pay);
+GST_ELEMENT_REGISTER_DECLARE (rtph261depay);
+GST_ELEMENT_REGISTER_DECLARE (rtph263ppay);
+GST_ELEMENT_REGISTER_DECLARE (rtph263pdepay);
+GST_ELEMENT_REGISTER_DECLARE (rtph263depay);
+GST_ELEMENT_REGISTER_DECLARE (rtph263pay);
+GST_ELEMENT_REGISTER_DECLARE (rtph264depay);
+GST_ELEMENT_REGISTER_DECLARE (rtph264pay);
+GST_ELEMENT_REGISTER_DECLARE (rtph265depay);
+GST_ELEMENT_REGISTER_DECLARE (rtph265pay);
+GST_ELEMENT_REGISTER_DECLARE (rtpj2kdepay);
+GST_ELEMENT_REGISTER_DECLARE (rtpj2kpay);
+GST_ELEMENT_REGISTER_DECLARE (rtpjpegdepay);
+GST_ELEMENT_REGISTER_DECLARE (rtpjpegpay);
+GST_ELEMENT_REGISTER_DECLARE (rtpklvdepay);
+GST_ELEMENT_REGISTER_DECLARE (rtpklvpay);
+GST_ELEMENT_REGISTER_DECLARE (rtpL8pay);
+GST_ELEMENT_REGISTER_DECLARE (rtpL8depay);
+GST_ELEMENT_REGISTER_DECLARE (rtpL16pay);
+GST_ELEMENT_REGISTER_DECLARE (rtpL16depay);
+GST_ELEMENT_REGISTER_DECLARE (rtpL24pay);
+GST_ELEMENT_REGISTER_DECLARE (rtpL24depay);
+GST_ELEMENT_REGISTER_DECLARE (rtpldacpay);
+GST_ELEMENT_REGISTER_DECLARE (asteriskh263);
+GST_ELEMENT_REGISTER_DECLARE (rtpmp1sdepay);
+GST_ELEMENT_REGISTER_DECLARE (rtpmp2tdepay);
+GST_ELEMENT_REGISTER_DECLARE (rtpmp2tpay);
+GST_ELEMENT_REGISTER_DECLARE (rtpmp4vpay);
+GST_ELEMENT_REGISTER_DECLARE (rtpmp4vdepay);
+GST_ELEMENT_REGISTER_DECLARE (rtpmp4apay);
+GST_ELEMENT_REGISTER_DECLARE (rtpmp4adepay);
+GST_ELEMENT_REGISTER_DECLARE (rtpmp4gdepay);
+GST_ELEMENT_REGISTER_DECLARE (rtpmp4gpay);
+GST_ELEMENT_REGISTER_DECLARE (rtpqcelpdepay);
+GST_ELEMENT_REGISTER_DECLARE (rtpqdm2depay);
+GST_ELEMENT_REGISTER_DECLARE (rtpsbcdepay);
+GST_ELEMENT_REGISTER_DECLARE (rtpsbcpay);
+GST_ELEMENT_REGISTER_DECLARE (rtpsirenpay);
+GST_ELEMENT_REGISTER_DECLARE (rtpsirendepay);
+GST_ELEMENT_REGISTER_DECLARE (rtpspeexpay);
+GST_ELEMENT_REGISTER_DECLARE (rtpspeexdepay);
+GST_ELEMENT_REGISTER_DECLARE (rtpsv3vdepay);
+GST_ELEMENT_REGISTER_DECLARE (rtptheoradepay);
+GST_ELEMENT_REGISTER_DECLARE (rtptheorapay);
+GST_ELEMENT_REGISTER_DECLARE (rtpvorbisdepay);
+GST_ELEMENT_REGISTER_DECLARE (rtpvorbispay);
+GST_ELEMENT_REGISTER_DECLARE (rtpvp8depay);
+GST_ELEMENT_REGISTER_DECLARE (rtpvp8pay);
+GST_ELEMENT_REGISTER_DECLARE (rtpvp9depay);
+GST_ELEMENT_REGISTER_DECLARE (rtpvp9pay);
+GST_ELEMENT_REGISTER_DECLARE (rtpvrawdepay);
+GST_ELEMENT_REGISTER_DECLARE (rtpvrawpay);
+GST_ELEMENT_REGISTER_DECLARE (rtpstreampay);
+GST_ELEMENT_REGISTER_DECLARE (rtpstreamdepay);
+GST_ELEMENT_REGISTER_DECLARE (rtpisacpay);
+GST_ELEMENT_REGISTER_DECLARE (rtpisacdepay);
+GST_ELEMENT_REGISTER_DECLARE (rtpredenc);
+GST_ELEMENT_REGISTER_DECLARE (rtpreddec);
+GST_ELEMENT_REGISTER_DECLARE (rtpulpfecdec);
+GST_ELEMENT_REGISTER_DECLARE (rtpulpfecenc);
+GST_ELEMENT_REGISTER_DECLARE (rtpstorage);
+
+G_END_DECLS
+
+#endif /* __GST_RTP_ELEMENTS_H__ */
index 5a25eef52b90e24f1a4ac424823adc232763aceb..060c7e1c8c55f0ec9579eaa6728fd9980c101039 100644 (file)
@@ -26,6 +26,7 @@
 
 #include <gst/audio/audio.h>
 
+#include "gstrtpelements.h"
 #include "gstrtpg722depay.h"
 #include "gstrtpchannels.h"
 #include "gstrtputils.h"
@@ -63,6 +64,8 @@ static GstStaticPadTemplate gst_rtp_g722_depay_sink_template =
 #define gst_rtp_g722_depay_parent_class parent_class
 G_DEFINE_TYPE (GstRtpG722Depay, gst_rtp_g722_depay,
     GST_TYPE_RTP_BASE_DEPAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpg722depay, "rtpg722depay",
+    GST_RANK_SECONDARY, GST_TYPE_RTP_G722_DEPAY, rtp_element_init (plugin));
 
 static gboolean gst_rtp_g722_depay_setcaps (GstRTPBaseDepayload * depayload,
     GstCaps * caps);
@@ -253,10 +256,3 @@ empty_packet:
     return NULL;
   }
 }
-
-gboolean
-gst_rtp_g722_depay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtpg722depay",
-      GST_RANK_SECONDARY, GST_TYPE_RTP_G722_DEPAY);
-}
index 8b6ffa046df538b0a8880ff6d0df81814d62f0de..2acdf28b2ea65f892a281ff9084444de9750b417 100644 (file)
@@ -57,8 +57,6 @@ struct _GstRtpG722DepayClass
 
 GType gst_rtp_g722_depay_get_type (void);
 
-gboolean gst_rtp_g722_depay_plugin_init (GstPlugin * plugin);
-
 G_END_DECLS
 
 #endif /* __GST_RTP_G722_DEPAY_H__ */
index a383e0120c2af8f60a91480e3e34c9302aa78c19..8afc2ebe0ecd2933c9956f37cc309ab27b1044bd 100644 (file)
@@ -26,6 +26,7 @@
 #include <gst/audio/audio.h>
 #include <gst/rtp/gstrtpbuffer.h>
 
+#include "gstrtpelements.h"
 #include "gstrtpg722pay.h"
 #include "gstrtpchannels.h"
 
@@ -64,6 +65,8 @@ static GstCaps *gst_rtp_g722_pay_getcaps (GstRTPBasePayload * rtppayload,
 #define gst_rtp_g722_pay_parent_class parent_class
 G_DEFINE_TYPE (GstRtpG722Pay, gst_rtp_g722_pay,
     GST_TYPE_RTP_BASE_AUDIO_PAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpg722pay, "rtpg722pay",
+    GST_RANK_SECONDARY, GST_TYPE_RTP_G722_PAY, rtp_element_init (plugin));
 
 static void
 gst_rtp_g722_pay_class_init (GstRtpG722PayClass * klass)
@@ -227,10 +230,3 @@ gst_rtp_g722_pay_getcaps (GstRTPBasePayload * rtppayload, GstPad * pad,
 
   return caps;
 }
-
-gboolean
-gst_rtp_g722_pay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtpg722pay",
-      GST_RANK_SECONDARY, GST_TYPE_RTP_G722_PAY);
-}
index f238286ea38983f05503b263283f2ce6f753ceef..1211ca0a0d3fe8113a5be5f5ff9bfb496435e278 100644 (file)
@@ -54,8 +54,6 @@ struct _GstRtpG722PayClass
 
 GType gst_rtp_g722_pay_get_type (void);
 
-gboolean gst_rtp_g722_pay_plugin_init (GstPlugin * plugin);
-
 G_END_DECLS
 
 #endif /* __GST_RTP_G722_PAY_H__ */
index 901d9ae063fc3d1a1d35c473202ba70dfe3261c2..e4f416ea26aca84df569b90e4874066e0b7726fb 100644 (file)
@@ -26,6 +26,7 @@
 
 #include <stdlib.h>
 #include <string.h>
+#include "gstrtpelements.h"
 #include "gstrtpg723depay.h"
 
 GST_DEBUG_CATEGORY_STATIC (rtpg723depay_debug);
@@ -80,6 +81,8 @@ static GstBuffer *gst_rtp_g723_depay_process (GstRTPBaseDepayload * depayload,
 #define gst_rtp_g723_depay_parent_class parent_class
 G_DEFINE_TYPE (GstRtpG723Depay, gst_rtp_g723_depay,
     GST_TYPE_RTP_BASE_DEPAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpg723depay, "rtpg723depay",
+    GST_RANK_SECONDARY, GST_TYPE_RTP_G723_DEPAY, rtp_element_init (plugin));
 
 static void
 gst_rtp_g723_depay_class_init (GstRtpG723DepayClass * klass)
@@ -214,10 +217,3 @@ bad_packet:
     return NULL;
   }
 }
-
-gboolean
-gst_rtp_g723_depay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtpg723depay",
-      GST_RANK_SECONDARY, GST_TYPE_RTP_G723_DEPAY);
-}
index dd942b3b6bbffe8348402ceda1df3d6ff5350688..673a13766074be9b9e1cbf3a50dad735786ae846 100644 (file)
@@ -52,8 +52,6 @@ struct _GstRtpG723DepayClass
 
 GType gst_rtp_g723_depay_get_type (void);
 
-gboolean gst_rtp_g723_depay_plugin_init (GstPlugin * plugin);
-
 G_END_DECLS
 
 #endif /* __GST_RTP_G723_DEPAY_H__ */
index 18e294a3f74c66a7481b96b25dc5f1c9336843ae..ebe7343d95e0db77596ea32d61c7b41304f39bc2 100644 (file)
@@ -28,6 +28,7 @@
 #include <gst/base/gstadapter.h>
 #include <gst/audio/audio.h>
 
+#include "gstrtpelements.h"
 #include "gstrtpg723pay.h"
 #include "gstrtputils.h"
 
@@ -68,6 +69,8 @@ static GstStateChangeReturn gst_rtp_g723_pay_change_state (GstElement * element,
 
 #define gst_rtp_g723_pay_parent_class parent_class
 G_DEFINE_TYPE (GstRTPG723Pay, gst_rtp_g723_pay, GST_TYPE_RTP_BASE_PAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpg723pay, "rtpg723pay",
+    GST_RANK_SECONDARY, GST_TYPE_RTP_G723_PAY, rtp_element_init (plugin));
 
 static void
 gst_rtp_g723_pay_class_init (GstRTPG723PayClass * klass)
@@ -298,11 +301,3 @@ gst_rtp_g723_pay_change_state (GstElement * element, GstStateChange transition)
 
   return ret;
 }
-
-/*Plugin init functions*/
-gboolean
-gst_rtp_g723_pay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtpg723pay", GST_RANK_SECONDARY,
-      gst_rtp_g723_pay_get_type ());
-}
index 37807412a40c2ecce6f5d37c51ed0a7c9edd52c5..03bff500255417794fe1a07eb9f6d784452f702a 100644 (file)
@@ -57,8 +57,6 @@ struct _GstRTPG723PayClass
 
 GType gst_rtp_g723_pay_get_type (void);
 
-gboolean gst_rtp_g723_pay_plugin_init (GstPlugin * plugin);
-
 G_END_DECLS
 
 #endif /* __GST_RTP_G723_PAY_H__ */
index 7af1928aa11d8598dde53dcb7c47b208dfcfcba3..a3c5de321af2d05e04406bbac814a4c2e12806be 100644 (file)
@@ -30,6 +30,7 @@
 #include <gst/rtp/gstrtpbuffer.h>
 #include <gst/audio/audio.h>
 
+#include "gstrtpelements.h"
 #include "gstrtpg726depay.h"
 #include "gstrtputils.h"
 
@@ -91,6 +92,8 @@ static gboolean gst_rtp_g726_depay_setcaps (GstRTPBaseDepayload * depayload,
 #define gst_rtp_g726_depay_parent_class parent_class
 G_DEFINE_TYPE (GstRtpG726Depay, gst_rtp_g726_depay,
     GST_TYPE_RTP_BASE_DEPAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpg726depay, "rtpg726depay",
+    GST_RANK_SECONDARY, GST_TYPE_RTP_G726_DEPAY, rtp_element_init (plugin));
 
 static void
 gst_rtp_g726_depay_class_init (GstRtpG726DepayClass * klass)
@@ -384,10 +387,3 @@ gst_rtp_g726_depay_get_property (GObject * object, guint prop_id,
       break;
   }
 }
-
-gboolean
-gst_rtp_g726_depay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtpg726depay",
-      GST_RANK_SECONDARY, GST_TYPE_RTP_G726_DEPAY);
-}
index 45fd2edbda626a88cf78ae2afc071bf990c1fb79..04ceec2f8dcba14c92f885ddebbf0ee5d52dc35c 100644 (file)
@@ -52,7 +52,5 @@ struct _GstRtpG726DepayClass
 
 GType gst_rtp_g726_depay_get_type (void);
 
-gboolean gst_rtp_g726_depay_plugin_init (GstPlugin * plugin);
-
 G_END_DECLS
 #endif /* __GST_RTP_G726_DEPAY_H__ */
index d251b49950eb8b655809351614d499760caf1b8b..76dad405354847b5c488e0531f27c9d5bc9adf56 100644 (file)
@@ -28,6 +28,7 @@
 #include <string.h>
 #include <gst/rtp/gstrtpbuffer.h>
 
+#include "gstrtpelements.h"
 #include "gstrtpg726pay.h"
 
 GST_DEBUG_CATEGORY_STATIC (rtpg726pay_debug);
@@ -77,6 +78,8 @@ static GstFlowReturn gst_rtp_g726_pay_handle_buffer (GstRTPBasePayload *
 #define gst_rtp_g726_pay_parent_class parent_class
 G_DEFINE_TYPE (GstRtpG726Pay, gst_rtp_g726_pay,
     GST_TYPE_RTP_BASE_AUDIO_PAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpg726pay, "rtpg726pay",
+    GST_RANK_SECONDARY, GST_TYPE_RTP_G726_PAY, rtp_element_init (plugin));
 
 static void
 gst_rtp_g726_pay_class_init (GstRtpG726PayClass * klass)
@@ -413,10 +416,3 @@ gst_rtp_g726_pay_get_property (GObject * object, guint prop_id,
       break;
   }
 }
-
-gboolean
-gst_rtp_g726_pay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtpg726pay",
-      GST_RANK_SECONDARY, GST_TYPE_RTP_G726_PAY);
-}
index d9dbfa43615b26c5770bb02c411049302a19da70..fd3078c2fee47ea96c8e08787f19085c23de6965 100644 (file)
@@ -49,7 +49,5 @@ struct _GstRtpG726PayClass
 
 GType gst_rtp_g726_pay_get_type (void);
 
-gboolean gst_rtp_g726_pay_plugin_init (GstPlugin * plugin);
-
 G_END_DECLS
 #endif /* __GST_RTP_G726_PAY_H__ */
index 69c1c4dfc2549e9b9bdf9b23536c516af7a360f2..0fb0bcd137e988ade04ce4dbbe1673edd2e3cd2a 100644 (file)
@@ -25,6 +25,7 @@
 
 #include <stdlib.h>
 #include <string.h>
+#include "gstrtpelements.h"
 #include "gstrtpg729depay.h"
 #include "gstrtputils.h"
 
@@ -80,6 +81,8 @@ static GstBuffer *gst_rtp_g729_depay_process (GstRTPBaseDepayload * depayload,
 #define gst_rtp_g729_depay_parent_class parent_class
 G_DEFINE_TYPE (GstRtpG729Depay, gst_rtp_g729_depay,
     GST_TYPE_RTP_BASE_DEPAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpg729depay, "rtpg729depay",
+    GST_RANK_SECONDARY, GST_TYPE_RTP_G729_DEPAY, rtp_element_init (plugin));
 
 static void
 gst_rtp_g729_depay_class_init (GstRtpG729DepayClass * klass)
@@ -216,10 +219,3 @@ bad_packet:
     return NULL;
   }
 }
-
-gboolean
-gst_rtp_g729_depay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtpg729depay",
-      GST_RANK_SECONDARY, GST_TYPE_RTP_G729_DEPAY);
-}
index a23562e569abae914e9953182fc043f978c5035c..355ee50682eff3ecb687fe3ef931e978ea849558 100644 (file)
@@ -54,8 +54,6 @@ struct _GstRtpG729DepayClass
 
 GType gst_rtp_g729_depay_get_type (void);
 
-gboolean gst_rtp_g729_depay_plugin_init (GstPlugin * plugin);
-
 G_END_DECLS
 
 #endif /* __GST_RTP_G729_DEPAY_H__ */
index 78097805e332649156a224297b2606760333414c..18e2bad8ecc3f14991cb933fd8260414222add7b 100644 (file)
@@ -34,6 +34,7 @@
 #include <gst/base/gstadapter.h>
 #include <gst/audio/audio.h>
 
+#include "gstrtpelements.h"
 #include "gstrtpg729pay.h"
 #include "gstrtputils.h"
 
@@ -78,6 +79,8 @@ static GstStaticPadTemplate gst_rtp_g729_pay_src_template =
 
 #define gst_rtp_g729_pay_parent_class parent_class
 G_DEFINE_TYPE (GstRTPG729Pay, gst_rtp_g729_pay, GST_TYPE_RTP_BASE_PAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpg729pay, "rtpg729pay",
+    GST_RANK_SECONDARY, GST_TYPE_RTP_G729_PAY, rtp_element_init (plugin));
 
 static void
 gst_rtp_g729_pay_finalize (GObject * object)
@@ -389,10 +392,3 @@ gst_rtp_g729_pay_change_state (GstElement * element, GstStateChange transition)
 
   return ret;
 }
-
-gboolean
-gst_rtp_g729_pay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtpg729pay",
-      GST_RANK_SECONDARY, GST_TYPE_RTP_G729_PAY);
-}
index 1b9246050608990cab17e135125bbf770ca6f6db..c9e76c27b371509beb452913fdd03521e3a4dc8a 100644 (file)
@@ -59,8 +59,6 @@ struct _GstRTPG729PayClass
 
 GType gst_rtp_g729_pay_get_type (void);
 
-gboolean gst_rtp_g729_pay_plugin_init (GstPlugin * plugin);
-
 G_END_DECLS
 
 #endif /* __GST_RTP_G729_PAY_H__ */
index c87c61852b6fea65bd01204f4a503d5e2406b0f9..313acb545d4d0f744ca9bf6ca07d368a5d81bb56 100644 (file)
@@ -25,6 +25,7 @@
 #include <string.h>
 #include <gst/rtp/gstrtpbuffer.h>
 #include <gst/audio/audio.h>
+#include "gstrtpelements.h"
 #include "gstrtpgsmdepay.h"
 #include "gstrtputils.h"
 
@@ -65,6 +66,8 @@ static gboolean gst_rtp_gsm_depay_setcaps (GstRTPBaseDepayload * _depayload,
 
 #define gst_rtp_gsm_depay_parent_class parent_class
 G_DEFINE_TYPE (GstRTPGSMDepay, gst_rtp_gsm_depay, GST_TYPE_RTP_BASE_DEPAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpgsmdepay, "rtpgsmdepay",
+    GST_RANK_SECONDARY, GST_TYPE_RTP_GSM_DEPAY, rtp_element_init (plugin));
 
 static void
 gst_rtp_gsm_depay_class_init (GstRTPGSMDepayClass * klass)
@@ -143,10 +146,3 @@ gst_rtp_gsm_depay_process (GstRTPBaseDepayload * depayload, GstRTPBuffer * rtp)
 
   return outbuf;
 }
-
-gboolean
-gst_rtp_gsm_depay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtpgsmdepay",
-      GST_RANK_SECONDARY, GST_TYPE_RTP_GSM_DEPAY);
-}
index e428aa09f4b2435c673891bdc1d11a6ac9b7b107..166f558691713d76d0ab4d6a9754467f520fe380 100644 (file)
@@ -51,8 +51,6 @@ struct _GstRTPGSMDepayClass
 
 GType gst_rtp_gsm_depay_get_type (void);
 
-gboolean gst_rtp_gsm_depay_plugin_init (GstPlugin * plugin);
-
 G_END_DECLS
 
 #endif /* __GST_RTP_GSM_DEPAY_H__ */
index 25fa0fa0a2321254c69239b820c15ce4b8cfa02d..b3197cb31a314432a23fea433cfe86052c32cbdb 100644 (file)
@@ -27,6 +27,7 @@
 #include <gst/rtp/gstrtpbuffer.h>
 #include <gst/audio/audio.h>
 
+#include "gstrtpelements.h"
 #include "gstrtpgsmpay.h"
 #include "gstrtputils.h"
 
@@ -61,6 +62,8 @@ static GstFlowReturn gst_rtp_gsm_pay_handle_buffer (GstRTPBasePayload * payload,
 
 #define gst_rtp_gsm_pay_parent_class parent_class
 G_DEFINE_TYPE (GstRTPGSMPay, gst_rtp_gsm_pay, GST_TYPE_RTP_BASE_PAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpgsmpay, "rtpgsmpay",
+    GST_RANK_SECONDARY, GST_TYPE_RTP_GSM_PAY, rtp_element_init (plugin));
 
 static void
 gst_rtp_gsm_pay_class_init (GstRTPGSMPayClass * klass)
@@ -172,10 +175,3 @@ too_big:
     return GST_FLOW_ERROR;
   }
 }
-
-gboolean
-gst_rtp_gsm_pay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtpgsmpay",
-      GST_RANK_SECONDARY, GST_TYPE_RTP_GSM_PAY);
-}
index b6437f516edf62cf6b86445addd1698adceb4c77..357a7c6955c4305d822a304f4dc447b77fe43d50 100644 (file)
@@ -52,7 +52,6 @@ struct _GstRTPGSMPayClass
 
 GType gst_rtp_gsm_pay_get_type (void);
 
-gboolean gst_rtp_gsm_pay_plugin_init (GstPlugin * plugin);
 
 G_END_DECLS
 
index 0f081776ea4f69cefb646f6252688f84b07c8254..ebf838296007510c7e9b9c5685d317e394097c7f 100644 (file)
@@ -24,6 +24,7 @@
 #include <string.h>
 #include <stdlib.h>
 
+#include "gstrtpelements.h"
 #include "gstrtpgstdepay.h"
 #include "gstrtputils.h"
 
@@ -49,6 +50,8 @@ GST_STATIC_PAD_TEMPLATE ("sink",
 
 #define gst_rtp_gst_depay_parent_class parent_class
 G_DEFINE_TYPE (GstRtpGSTDepay, gst_rtp_gst_depay, GST_TYPE_RTP_BASE_DEPAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpgstdepay, "rtpgstdepay",
+    GST_RANK_MARGINAL, GST_TYPE_RTP_GST_DEPAY, rtp_element_init (plugin));
 
 static void gst_rtp_gst_depay_finalize (GObject * object);
 
@@ -602,11 +605,3 @@ gst_rtp_gst_depay_change_state (GstElement * element, GstStateChange transition)
   }
   return ret;
 }
-
-
-gboolean
-gst_rtp_gst_depay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtpgstdepay",
-      GST_RANK_MARGINAL, GST_TYPE_RTP_GST_DEPAY);
-}
index 9ea9ec6c9152ec4d562bde326b725a3ef2e1dc18..41528792eafc3931775df8c0b3702fd5324fa8e4 100644 (file)
@@ -59,8 +59,6 @@ struct _GstRtpGSTDepayClass
 
 GType gst_rtp_gst_depay_get_type (void);
 
-gboolean gst_rtp_gst_depay_plugin_init (GstPlugin * plugin);
-
 G_END_DECLS
 
 #endif /* __GST_RTP_GST_DEPAY_H__ */
index 15b281bd734c2c916078e88b3e87449fe86b7f52..81ff4a4d46482f50abbfea7ded225825ed02e07c 100644 (file)
@@ -26,6 +26,7 @@
 #include <gst/rtp/gstrtpbuffer.h>
 #include <gst/video/video.h>
 
+#include "gstrtpelements.h"
 #include "gstrtpgstpay.h"
 #include "gstrtputils.h"
 
@@ -102,6 +103,8 @@ static gboolean gst_rtp_gst_pay_src_event (GstRTPBasePayload * payload,
 
 #define gst_rtp_gst_pay_parent_class parent_class
 G_DEFINE_TYPE (GstRtpGSTPay, gst_rtp_gst_pay, GST_TYPE_RTP_BASE_PAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpgstpay, "rtpgstpay", GST_RANK_NONE,
+    GST_TYPE_RTP_GST_PAY, rtp_element_init (plugin));
 
 static void
 gst_rtp_gst_pay_class_init (GstRtpGSTPayClass * klass)
@@ -694,10 +697,3 @@ gst_rtp_gst_pay_handle_buffer (GstRTPBasePayload * basepayload,
 
   return ret;
 }
-
-gboolean
-gst_rtp_gst_pay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtpgstpay",
-      GST_RANK_NONE, GST_TYPE_RTP_GST_PAY);
-}
index 6625a4dbcaf29ab181ab96d641db20f66f20a7e5..2294e174efd9203e6a4acf2670d127b2860505e1 100644 (file)
@@ -66,8 +66,6 @@ struct _GstRtpGSTPayClass
 
 GType gst_rtp_gst_pay_get_type (void);
 
-gboolean gst_rtp_gst_pay_plugin_init (GstPlugin * plugin);
-
 G_END_DECLS
 
 #endif /* __GST_RTP_GST_PAY_H__ */
index 164d2f04d43e55a36b18c02f9a502f0287615a44..23a888a4eacd176823ce11f8b496165549485296 100644 (file)
@@ -46,6 +46,7 @@
 
 #include <gst/rtp/gstrtpbuffer.h>
 #include <gst/video/video.h>
+#include "gstrtpelements.h"
 #include "gstrtph261depay.h"
 #include "gstrtph261pay.h"      /* GstRtpH261PayHeader */
 #include "gstrtputils.h"
@@ -75,10 +76,11 @@ static GstStaticPadTemplate gst_rtp_h261_depay_sink_template =
         "payload = (int) " GST_RTP_PAYLOAD_DYNAMIC_STRING ", "
         "clock-rate = (int) 90000, " "encoding-name = (string) \"H261\"")
     );
-
+#define parent_class gst_rtp_h261_depay_parent_class
 G_DEFINE_TYPE (GstRtpH261Depay, gst_rtp_h261_depay,
     GST_TYPE_RTP_BASE_DEPAYLOAD);
-#define parent_class gst_rtp_h261_depay_parent_class
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtph261depay, "rtph261depay",
+    GST_RANK_SECONDARY, GST_TYPE_RTP_H261_DEPAY, rtp_element_init (plugin));
 
 static GstBuffer *
 gst_rtp_h261_depay_process (GstRTPBaseDepayload * depayload, GstRTPBuffer * rtp)
@@ -285,10 +287,3 @@ gst_rtp_h261_depay_init (GstRtpH261Depay * depay)
   depay->adapter = gst_adapter_new ();
   depay->leftover = NO_LEFTOVER;
 }
-
-gboolean
-gst_rtp_h261_depay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtph261depay",
-      GST_RANK_SECONDARY, GST_TYPE_RTP_H261_DEPAY);
-}
index f87f81773c5120dd09ed439d6506945307d7eda1..821eff993a1d4bedee88f6d12dcc149ccfd51b51 100644 (file)
@@ -54,7 +54,5 @@ struct _GstRtpH261DepayClass
 
 GType gst_rtp_h261_depay_get_type (void);
 
-gboolean gst_rtp_h261_depay_plugin_init (GstPlugin * plugin);
-
 G_END_DECLS
 #endif /* __GST_RTP_H261_DEPAY_H__ */
index fadc2c99e79bc662574830f593f4486020c9431f..18143252ce5463877545e56fa4a2cc33eccaed53 100644 (file)
@@ -48,6 +48,7 @@
 #  include "config.h"
 #endif
 
+#include "gstrtpelements.h"
 #include "gstrtph261pay.h"
 #include "gstrtputils.h"
 #include <gst/rtp/gstrtpbuffer.h>
@@ -82,8 +83,10 @@ static GstStaticPadTemplate gst_rtp_h261_pay_src_template =
         "clock-rate = (int) 90000, " "encoding-name = (string) \"H261\"")
     );
 
-G_DEFINE_TYPE (GstRtpH261Pay, gst_rtp_h261_pay, GST_TYPE_RTP_BASE_PAYLOAD);
 #define parent_class gst_rtp_h261_pay_parent_class
+G_DEFINE_TYPE (GstRtpH261Pay, gst_rtp_h261_pay, GST_TYPE_RTP_BASE_PAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtph261pay, "rtph261pay",
+    GST_RANK_SECONDARY, GST_TYPE_RTP_H261_PAY, rtp_element_init (plugin));
 
 typedef struct
 {
@@ -1063,10 +1066,3 @@ gst_rtp_h261_pay_class_init (GstRtpH261PayClass * klass)
   GST_DEBUG_CATEGORY_INIT (rtph261pay_debug, "rtph261pay", 0,
       "H261 RTP Payloader");
 }
-
-gboolean
-gst_rtp_h261_pay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtph261pay",
-      GST_RANK_SECONDARY, GST_TYPE_RTP_H261_PAY);
-}
index eae4bf2db5e02917981ecaef29b06bf1fb73f462..1052d01be3059c7a6ce1db8aa8030d83a4e6834d 100644 (file)
@@ -94,7 +94,5 @@ typedef struct _GstRtpH261PayHeader
 
 GType gst_rtp_h261_pay_get_type (void);
 
-gboolean gst_rtp_h261_pay_plugin_init (GstPlugin * plugin);
-
 G_END_DECLS
 #endif /* __GST_RTP_H261_PAY_H__ */
index 296f9178704caea619bba55d8be5d2998f0e283f..f6b41a5bc9d4c334a550cf488436225aeaae9f4e 100644 (file)
@@ -31,6 +31,7 @@
 
 #include <gst/rtp/gstrtpbuffer.h>
 #include <gst/video/video.h>
+#include "gstrtpelements.h"
 #include "gstrtph263depay.h"
 #include "gstrtputils.h"
 
@@ -72,6 +73,8 @@ static GstStaticPadTemplate gst_rtp_h263_depay_sink_template =
 #define gst_rtp_h263_depay_parent_class parent_class
 G_DEFINE_TYPE (GstRtpH263Depay, gst_rtp_h263_depay,
     GST_TYPE_RTP_BASE_DEPAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtph263depay, "rtph263depay",
+    GST_RANK_SECONDARY, GST_TYPE_RTP_H263_DEPAY, rtp_element_init (plugin));
 
 static void gst_rtp_h263_depay_finalize (GObject * object);
 
@@ -438,10 +441,3 @@ gst_rtp_h263_depay_change_state (GstElement * element,
   }
   return ret;
 }
-
-gboolean
-gst_rtp_h263_depay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtph263depay",
-      GST_RANK_SECONDARY, GST_TYPE_RTP_H263_DEPAY);
-}
index 2d9ca55c7000ab516941ce46d43ec0ef5e548909..485fc9dfaa445c1658039cebb1e0c7ffa7c3eeff 100644 (file)
@@ -58,8 +58,6 @@ struct _GstRtpH263DepayClass
 
 GType gst_rtp_h263_depay_get_type (void);
 
-gboolean gst_rtp_h263_depay_plugin_init (GstPlugin * plugin);
-
 G_END_DECLS
 
 #endif /* __GST_RTP_H263_DEPAY_H__ */
index 9c296a917370c82e4207fb551d96c1c3e7bb8383..b7239f49ba984732895d535e3ed5ff18749d3e4e 100644 (file)
@@ -29,6 +29,7 @@
 #include <gst/rtp/gstrtpbuffer.h>
 #include <gst/video/video.h>
 
+#include "gstrtpelements.h"
 #include "gstrtph263pay.h"
 #include "gstrtputils.h"
 
@@ -399,6 +400,8 @@ static void gst_rtp_h263_pay_package_destroy (GstRtpH263PayPackage * pack);
 
 #define gst_rtp_h263_pay_parent_class parent_class
 G_DEFINE_TYPE (GstRtpH263Pay, gst_rtp_h263_pay, GST_TYPE_RTP_BASE_PAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtph263pay, "rtph263pay",
+    GST_RANK_SECONDARY, GST_TYPE_RTP_H263_PAY, rtp_element_init (plugin));
 
 static void
 gst_rtp_h263_pay_class_init (GstRtpH263PayClass * klass)
@@ -1865,10 +1868,3 @@ gst_rtp_h263_pay_handle_buffer (GstRTPBasePayload * payload, GstBuffer * buffer)
 
   return ret;
 }
-
-gboolean
-gst_rtp_h263_pay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtph263pay",
-      GST_RANK_SECONDARY, GST_TYPE_RTP_H263_PAY);
-}
index 2abfc871e9b1b37a8cf615a8591e666df6b5bf5a..c77e6ac15ab7e6bc729e9a16f1a3b7c5fbb9ee41 100644 (file)
@@ -409,7 +409,5 @@ struct _GstRtpH263PayPackage
 
 GType gst_rtp_h263_pay_get_type (void);
 
-gboolean gst_rtp_h263_pay_plugin_init (GstPlugin * plugin);
-
 G_END_DECLS
 #endif /* __GST_RTP_H263_PAY_H__ */
index a1fc40c4a3640d4ffe6d581caa272c72e96cc4d5..f35d3de129811c284f60d3d2c2e71da8dbd347a0 100644 (file)
@@ -25,6 +25,7 @@
 
 #include <gst/rtp/gstrtpbuffer.h>
 #include <gst/video/video.h>
+#include "gstrtpelements.h"
 #include "gstrtph263pdepay.h"
 #include "gstrtputils.h"
 
@@ -84,6 +85,8 @@ static GstStaticPadTemplate gst_rtp_h263p_depay_sink_template =
 #define gst_rtp_h263p_depay_parent_class parent_class
 G_DEFINE_TYPE (GstRtpH263PDepay, gst_rtp_h263p_depay,
     GST_TYPE_RTP_BASE_DEPAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtph263pdepay, "rtph263pdepay",
+    GST_RANK_SECONDARY, GST_TYPE_RTP_H263P_DEPAY, rtp_element_init (plugin));
 
 static void gst_rtp_h263p_depay_finalize (GObject * object);
 
@@ -394,10 +397,3 @@ gst_rtp_h263p_depay_change_state (GstElement * element,
   }
   return ret;
 }
-
-gboolean
-gst_rtp_h263p_depay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtph263pdepay",
-      GST_RANK_SECONDARY, GST_TYPE_RTP_H263P_DEPAY);
-}
index bbdb2b0a4a2f9bdc8d9b4ad3be03a709be9f5e2e..bdcb826a993e557642bf4a0df72bc755d93f90fc 100644 (file)
@@ -55,8 +55,6 @@ struct _GstRtpH263PDepayClass
 
 GType gst_rtp_h263p_depay_get_type (void);
 
-gboolean gst_rtp_h263p_depay_plugin_init (GstPlugin * plugin);
-
 G_END_DECLS
 
 #endif /* __GST_RTP_H263P_DEPAY_H__ */
index bb454558b3b835412604db4c4bd90407ad48c545..5e4aac0550ad7092e10a5283d61eb793f73426e4 100644 (file)
@@ -28,6 +28,7 @@
 #include <gst/rtp/gstrtpbuffer.h>
 #include <gst/video/video.h>
 
+#include "gstrtpelements.h"
 #include "gstrtph263ppay.h"
 #include "gstrtputils.h"
 
@@ -112,6 +113,8 @@ static GstFlowReturn gst_rtp_h263p_pay_handle_buffer (GstRTPBasePayload *
 
 #define gst_rtp_h263p_pay_parent_class parent_class
 G_DEFINE_TYPE (GstRtpH263PPay, gst_rtp_h263p_pay, GST_TYPE_RTP_BASE_PAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtph263ppay, "rtph263ppay",
+    GST_RANK_SECONDARY, GST_TYPE_RTP_H263P_PAY, rtp_element_init (plugin));
 
 static void
 gst_rtp_h263p_pay_class_init (GstRtpH263PPayClass * klass)
@@ -809,10 +812,3 @@ gst_rtp_h263p_pay_handle_buffer (GstRTPBasePayload * payload,
 
   return ret;
 }
-
-gboolean
-gst_rtp_h263p_pay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtph263ppay",
-      GST_RANK_SECONDARY, GST_TYPE_RTP_H263P_PAY);
-}
index 23ec8b8e955e0268bba324188920090bdf22f686..7197b86e5bcc1e7e215b78580e895aa41d0e42ee 100644 (file)
@@ -63,8 +63,6 @@ struct _GstRtpH263PPayClass
 
 GType gst_rtp_h263p_pay_get_type (void);
 
-gboolean gst_rtp_h263p_pay_plugin_init (GstPlugin * plugin);
-
 G_END_DECLS
 
 #endif /* __GST_RTP_H263P_PAY_H__ */
index 91940260b177094c77cc03a90140d95624f04e5a..c5608d011044b54a4310a92467779ece9359c77c 100644 (file)
@@ -28,6 +28,7 @@
 #include <gst/rtp/gstrtpbuffer.h>
 #include <gst/pbutils/pbutils.h>
 #include <gst/video/video.h>
+#include "gstrtpelements.h"
 #include "gstrtph264depay.h"
 #include "gstrtputils.h"
 
@@ -91,6 +92,8 @@ GST_STATIC_PAD_TEMPLATE ("sink",
 #define gst_rtp_h264_depay_parent_class parent_class
 G_DEFINE_TYPE (GstRtpH264Depay, gst_rtp_h264_depay,
     GST_TYPE_RTP_BASE_DEPAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtph264depay, "rtph264depay",
+    GST_RANK_SECONDARY, GST_TYPE_RTP_H264_DEPAY, rtp_element_init (plugin));
 
 static void gst_rtp_h264_depay_finalize (GObject * object);
 
@@ -1506,13 +1509,3 @@ gst_rtp_h264_depay_change_state (GstElement * element,
   }
   return ret;
 }
-
-gboolean
-gst_rtp_h264_depay_plugin_init (GstPlugin * plugin)
-{
-  GST_DEBUG_CATEGORY_INIT (rtph264depay_debug, "rtph264depay", 0,
-      "H264 Video RTP Depayloader");
-
-  return gst_element_register (plugin, "rtph264depay",
-      GST_RANK_SECONDARY, GST_TYPE_RTP_H264_DEPAY);
-}
index 28058418c32799300b0dd6258bc25cb9c4f365e3..8ca7381beb813859b0f19b1f6bdcfe4522b0bd71 100644 (file)
@@ -84,8 +84,6 @@ struct _GstRtpH264DepayClass
 
 GType gst_rtp_h264_depay_get_type (void);
 
-gboolean gst_rtp_h264_depay_plugin_init (GstPlugin * plugin);
-
 gboolean gst_rtp_h264_add_sps_pps (GstElement * rtph264, GPtrArray * sps,
     GPtrArray * pps, GstBuffer * nal);
 
index 52e92a5fc6e2891ea693f08701b351bfd3743157..49471d867874cd33bc9de11e614345cbd2cc5c74 100644 (file)
@@ -31,6 +31,7 @@
 /* Included to not duplicate gst_rtp_h264_add_sps_pps () */
 #include "gstrtph264depay.h"
 
+#include "gstrtpelements.h"
 #include "gstrtph264pay.h"
 #include "gstrtputils.h"
 #include "gstbuffermemory.h"
@@ -133,6 +134,8 @@ static void gst_rtp_h264_pay_reset_bundle (GstRtpH264Pay * rtph264pay);
 
 #define gst_rtp_h264_pay_parent_class parent_class
 G_DEFINE_TYPE (GstRtpH264Pay, gst_rtp_h264_pay, GST_TYPE_RTP_BASE_PAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtph264pay, "rtph264pay",
+    GST_RANK_SECONDARY, GST_TYPE_RTP_H264_PAY, rtp_element_init (plugin));
 
 static void
 gst_rtp_h264_pay_class_init (GstRtpH264PayClass * klass)
@@ -1809,10 +1812,3 @@ gst_rtp_h264_pay_get_property (GObject * object, guint prop_id,
       break;
   }
 }
-
-gboolean
-gst_rtp_h264_pay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtph264pay",
-      GST_RANK_SECONDARY, GST_TYPE_RTP_H264_PAY);
-}
index 879394bfa76ea8b9ea5029382e4297a13de73db0..47cc896e1d7ef85c4bbefd11ab70f9130b1d0601 100644 (file)
@@ -104,8 +104,6 @@ struct _GstRtpH264PayClass
 
 GType gst_rtp_h264_pay_get_type (void);
 
-gboolean gst_rtp_h264_pay_plugin_init (GstPlugin * plugin);
-
 G_END_DECLS
 
 #endif /* __GST_RTP_H264_PAY_H__ */
index 38f53e4dea2561f5bfd795b63d043c4d60807f17..c6edaeb08079504d4f4ecf4fffcd57fedac1be14 100644 (file)
@@ -28,6 +28,7 @@
 #include <gst/base/gstbitreader.h>
 #include <gst/rtp/gstrtpbuffer.h>
 #include <gst/video/video.h>
+#include "gstrtpelements.h"
 #include "gstrtph265depay.h"
 #include "gstrtputils.h"
 
@@ -97,6 +98,8 @@ GST_STATIC_PAD_TEMPLATE ("sink",
 #define gst_rtp_h265_depay_parent_class parent_class
 G_DEFINE_TYPE (GstRtpH265Depay, gst_rtp_h265_depay,
     GST_TYPE_RTP_BASE_DEPAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtph265depay, "rtph265depay",
+    GST_RANK_SECONDARY, GST_TYPE_RTP_H265_DEPAY, rtp_element_init (plugin));
 
 static void gst_rtp_h265_depay_finalize (GObject * object);
 
@@ -460,7 +463,6 @@ gst_rtp_h265_set_src_caps (GstRtpH265Depay * rtph265depay)
     gst_rtp_read_golomb (&br, &chroma_format_idc);      /* chroma_format_idc */
 
     if (chroma_format_idc == 3)
-
       gst_bit_reader_get_bits_uint8 (&br, &tmp8, 1);    /* separate_colour_plane_flag */
 
     gst_rtp_read_golomb (&br, &tmp);    /* pic_width_in_luma_samples */
@@ -1661,13 +1663,3 @@ gst_rtp_h265_depay_change_state (GstElement * element,
   }
   return ret;
 }
-
-gboolean
-gst_rtp_h265_depay_plugin_init (GstPlugin * plugin)
-{
-  GST_DEBUG_CATEGORY_INIT (rtph265depay_debug, "rtph265depay", 0,
-      "H265 Video RTP Depayloader");
-
-  return gst_element_register (plugin, "rtph265depay",
-      GST_RANK_SECONDARY, GST_TYPE_RTP_H265_DEPAY);
-}
index b3b55ee7b225e5b1c461b7fdf5c38ec909b83917..505bdb5cd1d583ee10eca6b8121f1f6fe9ca7911 100644 (file)
@@ -108,8 +108,6 @@ typedef struct
 
 GType gst_rtp_h265_depay_get_type (void);
 
-gboolean gst_rtp_h265_depay_plugin_init (GstPlugin * plugin);
-
 gboolean gst_rtp_h265_add_vps_sps_pps (GstElement * rtph265, GPtrArray * vps,
     GPtrArray * sps, GPtrArray * pps, GstBuffer * nal);
 
index 81e2bce0b2092737ce058aa4539f17d30ccbdaac..9c195152bc1089f5be0d805525dd0ff2aa5ffb9a 100644 (file)
@@ -32,6 +32,7 @@
 /* Included to not duplicate gst_rtp_h265_add_vps_sps_pps () */
 #include "gstrtph265depay.h"
 
+#include "gstrtpelements.h"
 #include "gstrtph265pay.h"
 #include "gstrtputils.h"
 #include "gstbuffermemory.h"
@@ -166,6 +167,8 @@ static void gst_rtp_h265_pay_reset_bundle (GstRtpH265Pay * rtph265pay);
 
 #define gst_rtp_h265_pay_parent_class parent_class
 G_DEFINE_TYPE (GstRtpH265Pay, gst_rtp_h265_pay, GST_TYPE_RTP_BASE_PAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtph265pay, "rtph265pay",
+    GST_RANK_SECONDARY, GST_TYPE_RTP_H265_PAY, rtp_element_init (plugin));
 
 static void
 gst_rtp_h265_pay_class_init (GstRtpH265PayClass * klass)
@@ -1821,10 +1824,3 @@ gst_rtp_h265_pay_get_property (GObject * object, guint prop_id,
       break;
   }
 }
-
-gboolean
-gst_rtp_h265_pay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtph265pay",
-      GST_RANK_SECONDARY, GST_TYPE_RTP_H265_PAY);
-}
index 6d1409558145bd68a581fda7778a24901013fb38..af80c72befe867819f80edc82f25f2517aa99b95 100644 (file)
@@ -87,7 +87,5 @@ struct _GstRtpH265PayClass
 
 GType gst_rtp_h265_pay_get_type (void);
 
-gboolean gst_rtp_h265_pay_plugin_init (GstPlugin * plugin);
-
 G_END_DECLS
 #endif /* __GST_RTP_H265_PAY_H__ */
index 0b020afd79e858ce21457d231dff1532370ec613..043e065d7d94d2cb2e09043b23f76e08fb03c091 100644 (file)
@@ -25,6 +25,7 @@
 #include <stdlib.h>
 #include <gst/rtp/gstrtpbuffer.h>
 #include <gst/audio/audio.h>
+#include "gstrtpelements.h"
 #include "gstrtpilbcdepay.h"
 #include "gstrtputils.h"
 
@@ -74,6 +75,8 @@ static gboolean gst_rtp_ilbc_depay_setcaps (GstRTPBaseDepayload * depayload,
 #define gst_rtp_ilbc_depay_parent_class parent_class
 G_DEFINE_TYPE (GstRTPiLBCDepay, gst_rtp_ilbc_depay,
     GST_TYPE_RTP_BASE_DEPAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpilbcdepay, "rtpilbcdepay",
+    GST_RANK_SECONDARY, GST_TYPE_RTP_ILBC_DEPAY, rtp_element_init (plugin));
 
 #define GST_TYPE_ILBC_MODE (gst_ilbc_mode_get_type())
 static GType
@@ -230,10 +233,3 @@ gst_ilbc_depay_get_property (GObject * object,
       break;
   }
 }
-
-gboolean
-gst_rtp_ilbc_depay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtpilbcdepay",
-      GST_RANK_SECONDARY, GST_TYPE_RTP_ILBC_DEPAY);
-}
index 01fd225eae2108f0747c1baf39c461011d4552fa..b016004e4aa98ef23382aba382cb0c97e8bafb1c 100644 (file)
@@ -58,8 +58,6 @@ struct _GstRTPiLBCDepayClass
 
 GType gst_rtp_ilbc_depay_get_type (void);
 
-gboolean gst_rtp_ilbc_depay_plugin_init (GstPlugin * plugin);
-
 G_END_DECLS
 
 #endif /* __GST_RTP_ILBC_DEPAY_H__ */
index cbc7d93dec0b4f4af8822939f993923b3cc176b7..0048045aec1fedd7f9600c38c992aa7bf6f4016e 100644 (file)
@@ -23,6 +23,7 @@
 
 #include <stdlib.h>
 #include <gst/rtp/gstrtpbuffer.h>
+#include "gstrtpelements.h"
 #include "gstrtpilbcpay.h"
 
 GST_DEBUG_CATEGORY_STATIC (rtpilbcpay_debug);
@@ -56,6 +57,8 @@ static gboolean gst_rtp_ilbc_pay_sink_setcaps (GstRTPBasePayload * payload,
 #define gst_rtp_ilbc_pay_parent_class parent_class
 G_DEFINE_TYPE (GstRTPILBCPay, gst_rtp_ilbc_pay,
     GST_TYPE_RTP_BASE_AUDIO_PAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpilbcpay, "rtpilbcpay",
+    GST_RANK_SECONDARY, GST_TYPE_RTP_ILBC_PAY, rtp_element_init (plugin));
 
 static void
 gst_rtp_ilbc_pay_class_init (GstRTPILBCPayClass * klass)
@@ -219,10 +222,3 @@ gst_rtp_ilbc_pay_sink_getcaps (GstRTPBasePayload * rtppayload, GstPad * pad,
 
   return caps;
 }
-
-gboolean
-gst_rtp_ilbc_pay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtpilbcpay",
-      GST_RANK_SECONDARY, GST_TYPE_RTP_ILBC_PAY);
-}
index 14363c0774128d94d00da693dea918fc8fc2c566..d30c11239b6d27135053d548caad2da3ad6a13bf 100644 (file)
@@ -53,8 +53,6 @@ struct _GstRTPILBCPayClass
 
 GType gst_rtp_ilbc_pay_get_type (void);
 
-gboolean gst_rtp_ilbc_pay_plugin_init (GstPlugin * plugin);
-
 G_END_DECLS
 
 #endif /* __GST_RTP_ILBC_PAY_H__ */
index 38d02acbf0fdb0b6ca0b00fa76b031c0d7284394..bac1fa048f9dc204a035399100bdb369402cde4b 100644 (file)
@@ -36,6 +36,7 @@
 #include <gst/rtp/gstrtpbuffer.h>
 #include <gst/audio/audio.h>
 
+#include "gstrtpelements.h"
 #include "gstrtpisacdepay.h"
 #include "gstrtputils.h"
 
@@ -72,6 +73,8 @@ struct _GstRtpIsacDepay
 #define gst_rtp_isac_depay_parent_class parent_class
 G_DEFINE_TYPE (GstRtpIsacDepay, gst_rtp_isac_depay,
     GST_TYPE_RTP_BASE_DEPAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpisacdepay, "rtpisacdepay",
+    GST_RANK_SECONDARY, GST_TYPE_RTP_ISAC_DEPAY, rtp_element_init (plugin));
 
 static gboolean
 gst_rtp_isac_depay_setcaps (GstRTPBaseDepayload * depayload, GstCaps * caps)
@@ -142,10 +145,3 @@ static void
 gst_rtp_isac_depay_init (GstRtpIsacDepay * rtpisacdepay)
 {
 }
-
-gboolean
-gst_rtp_isac_depay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtpisacdepay",
-      GST_RANK_SECONDARY, GST_TYPE_RTP_ISAC_DEPAY);
-}
index e0540b2cb12e5648838582ddcc8732e275c53eb6..f5ab289543e7a5152d6c67bb71383a3e7720388d 100644 (file)
@@ -27,7 +27,5 @@ G_BEGIN_DECLS
 G_DECLARE_FINAL_TYPE (GstRtpIsacDepay, gst_rtp_isac_depay, GST, RTP_ISAC_DEPAY,
     GstRTPBaseDepayload);
 
-gboolean gst_rtp_isac_depay_plugin_init (GstPlugin * plugin);
-
 G_END_DECLS
 #endif /* __GST_RTP_ISAC_DEPAY_H__ */
index 7be272b31c6d9c7fded2c09cfbe4cea13f459b9e..ad03a190f1c43b55741ea53a8d014ebdbae3ac46 100644 (file)
@@ -33,6 +33,7 @@
 
 #include <gst/rtp/gstrtpbuffer.h>
 
+#include "gstrtpelements.h"
 #include "gstrtpisacpay.h"
 #include "gstrtputils.h"
 
@@ -67,6 +68,8 @@ struct _GstRtpIsacPay
 
 #define gst_rtp_isac_pay_parent_class parent_class
 G_DEFINE_TYPE (GstRtpIsacPay, gst_rtp_isac_pay, GST_TYPE_RTP_BASE_PAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpisacpay, "rtpisacpay",
+    GST_RANK_SECONDARY, GST_TYPE_RTP_ISAC_PAY, rtp_element_init (plugin));
 
 static GstCaps *
 gst_rtp_isac_pay_getcaps (GstRTPBasePayload * payload, GstPad * pad,
@@ -178,10 +181,3 @@ static void
 gst_rtp_isac_pay_init (GstRtpIsacPay * rtpisacpay)
 {
 }
-
-gboolean
-gst_rtp_isac_pay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtpisacpay",
-      GST_RANK_SECONDARY, GST_TYPE_RTP_ISAC_PAY);
-}
index 764fae455d7ed666b46f67bca4aaca166223463a..82c072bddfc1b79334f80b3e9f86205dc342ea2d 100644 (file)
@@ -26,8 +26,6 @@ G_BEGIN_DECLS
 
 G_DECLARE_FINAL_TYPE(GstRtpIsacPay, gst_rtp_isac_pay, GST, RTP_ISAC_PAY, GstRTPBasePayload);
 
-gboolean gst_rtp_isac_pay_plugin_init (GstPlugin * plugin);
-
 G_END_DECLS
 
 #endif /* __GST_RTP_ISAC_PAY_H__ */
index 132bcf5dfb1e7fbeeb6f56072cca2d9c94205ef8..4456b3dd893dab33370d0554e8f2db63e0cc51da 100644 (file)
@@ -37,6 +37,7 @@
 #include <gst/video/video.h>
 
 #include <string.h>
+#include "gstrtpelements.h"
 #include "gstrtpj2kcommon.h"
 #include "gstrtpj2kdepay.h"
 #include "gstrtputils.h"
@@ -74,6 +75,8 @@ enum
 
 #define gst_rtp_j2k_depay_parent_class parent_class
 G_DEFINE_TYPE (GstRtpJ2KDepay, gst_rtp_j2k_depay, GST_TYPE_RTP_BASE_DEPAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpj2kdepay, "rtpj2kdepay",
+    GST_RANK_SECONDARY, GST_TYPE_RTP_J2K_DEPAY, rtp_element_init (plugin));
 
 static void gst_rtp_j2k_depay_finalize (GObject * object);
 
@@ -659,10 +662,3 @@ gst_rtp_j2k_depay_change_state (GstElement * element, GstStateChange transition)
   }
   return ret;
 }
-
-gboolean
-gst_rtp_j2k_depay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtpj2kdepay",
-      GST_RANK_SECONDARY, GST_TYPE_RTP_J2K_DEPAY);
-}
index ebc743397eaf6bf796ff58140ce25a6ecfa388c2..5f499393d72fdbc5777ac863383f143afa61aaf7 100644 (file)
@@ -66,7 +66,6 @@ struct _GstRtpJ2KDepayClass
 
 GType gst_rtp_j2k_depay_get_type (void);
 
-gboolean gst_rtp_j2k_depay_plugin_init (GstPlugin * plugin);
 
 G_END_DECLS
 #endif /* __GST_RTP_J2K_DEPAY_H__ */
index 41d1fadca5cf46d0e2d7aafbdbc8dae7dcc74b49..1fb35164cdf2814933fc7ce3b28fc133a11970d1 100644 (file)
@@ -40,6 +40,7 @@
 #include <string.h>
 #include <gst/rtp/gstrtpbuffer.h>
 #include <gst/video/video.h>
+#include "gstrtpelements.h"
 #include "gstrtpj2kcommon.h"
 #include "gstrtpj2kpay.h"
 #include "gstrtputils.h"
@@ -97,6 +98,8 @@ static GstFlowReturn gst_rtp_j2k_pay_handle_buffer (GstRTPBasePayload * pad,
 
 #define gst_rtp_j2k_pay_parent_class parent_class
 G_DEFINE_TYPE (GstRtpJ2KPay, gst_rtp_j2k_pay, GST_TYPE_RTP_BASE_PAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpj2kpay, "rtpj2kpay",
+    GST_RANK_SECONDARY, GST_TYPE_RTP_J2K_PAY, rtp_element_init (plugin));
 
 static void
 gst_rtp_j2k_pay_class_init (GstRtpJ2KPayClass * klass)
@@ -562,10 +565,3 @@ gst_rtp_j2k_pay_get_property (GObject * object, guint prop_id,
       break;
   }
 }
-
-gboolean
-gst_rtp_j2k_pay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtpj2kpay", GST_RANK_SECONDARY,
-      GST_TYPE_RTP_J2K_PAY);
-}
index 14f52959557d1b12e16146199b7a32cf5e7a3728..e5474938bfaca79852006c2e1d7969d65b92595d 100644 (file)
@@ -52,7 +52,5 @@ struct _GstRtpJ2KPayClass
 
 GType gst_rtp_j2k_pay_get_type (void);
 
-gboolean gst_rtp_j2k_pay_plugin_init (GstPlugin * plugin);
-
 G_END_DECLS
 #endif /* __GST_RTP_J2K_PAY_H__ */
index 5cd54282847d20b37d82e0bfab3885759166b89a..02209d53b7431bd86b85744d2bc7fc150e80be3d 100644 (file)
@@ -28,6 +28,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include "gstrtpelements.h"
 #include "gstrtpjpegdepay.h"
 #include "gstrtputils.h"
 
@@ -70,6 +71,8 @@ static GstStaticPadTemplate gst_rtp_jpeg_depay_sink_template =
 #define gst_rtp_jpeg_depay_parent_class parent_class
 G_DEFINE_TYPE (GstRtpJPEGDepay, gst_rtp_jpeg_depay,
     GST_TYPE_RTP_BASE_DEPAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpjpegdepay, "rtpjpegdepay",
+    GST_RANK_SECONDARY, GST_TYPE_RTP_JPEG_DEPAY, rtp_element_init (plugin));
 
 static void gst_rtp_jpeg_depay_finalize (GObject * object);
 
@@ -790,11 +793,3 @@ gst_rtp_jpeg_depay_change_state (GstElement * element,
   }
   return ret;
 }
-
-
-gboolean
-gst_rtp_jpeg_depay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtpjpegdepay",
-      GST_RANK_SECONDARY, GST_TYPE_RTP_JPEG_DEPAY);
-}
index cb74f12d4ffd0e017536b9d4104a78f69759db23..3f7aea219b226c3559f711d207ed2afdf829c4b5 100644 (file)
@@ -63,7 +63,6 @@ struct _GstRtpJPEGDepayClass
 
 GType gst_rtp_jpeg_depay_get_type (void);
 
-gboolean gst_rtp_jpeg_depay_plugin_init (GstPlugin * plugin);
 
 G_END_DECLS
 
index b79ecc606f34bc65f5eb4725466fb859b277b9f9..d2d6b995221e65e56d2f915fa0f901d850f6bba3 100644 (file)
@@ -41,6 +41,7 @@
 #include <gst/rtp/gstrtpbuffer.h>
 #include <gst/video/video.h>
 
+#include "gstrtpelements.h"
 #include "gstrtpjpegpay.h"
 #include "gstrtputils.h"
 #include "gstbuffermemory.h"
@@ -248,6 +249,8 @@ static GstFlowReturn gst_rtp_jpeg_pay_handle_buffer (GstRTPBasePayload * pad,
 
 #define gst_rtp_jpeg_pay_parent_class parent_class
 G_DEFINE_TYPE (GstRtpJPEGPay, gst_rtp_jpeg_pay, GST_TYPE_RTP_BASE_PAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpjpegpay, "rtpjpegpay",
+    GST_RANK_SECONDARY, GST_TYPE_RTP_JPEG_PAY, rtp_element_init (plugin));
 
 static void
 gst_rtp_jpeg_pay_class_init (GstRtpJPEGPayClass * klass)
@@ -1047,10 +1050,3 @@ gst_rtp_jpeg_pay_get_property (GObject * object, guint prop_id,
       break;
   }
 }
-
-gboolean
-gst_rtp_jpeg_pay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtpjpegpay", GST_RANK_SECONDARY,
-      GST_TYPE_RTP_JPEG_PAY);
-}
index 4d65ea71efdf1258af3ed32249ec06b0d601d361..696dc39e3545c4732cabc830e094ea660c53744f 100644 (file)
@@ -57,7 +57,5 @@ struct _GstRtpJPEGPayClass
 
 GType gst_rtp_jpeg_pay_get_type (void);
 
-gboolean gst_rtp_jpeg_pay_plugin_init (GstPlugin * plugin);
-
 G_END_DECLS
 #endif /* __GST_RTP_JPEG_PAY_H__ */
index a5026712bb2b3edc57ff3efa2fbad7093ed0af39..1cb8bc3ab40038f48a92a0ed7641adbc8eb9ea4d 100644 (file)
@@ -37,6 +37,7 @@
 #include "config.h"
 #endif
 
+#include "gstrtpelements.h"
 #include "gstrtpklvdepay.h"
 
 #include <string.h>
@@ -59,6 +60,8 @@ static GstStaticPadTemplate sink_template = GST_STATIC_PAD_TEMPLATE ("sink",
 
 #define gst_rtp_klv_depay_parent_class parent_class
 G_DEFINE_TYPE (GstRtpKlvDepay, gst_rtp_klv_depay, GST_TYPE_RTP_BASE_DEPAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpklvdepay, "rtpklvdepay",
+    GST_RANK_SECONDARY, GST_TYPE_RTP_KLV_DEPAY, rtp_element_init (plugin));
 
 static void gst_rtp_klv_depay_finalize (GObject * object);
 
@@ -388,10 +391,3 @@ gst_rtp_klv_depay_change_state (GstElement * element, GstStateChange transition)
   }
   return ret;
 }
-
-gboolean
-gst_rtp_klv_depay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtpklvdepay",
-      GST_RANK_SECONDARY, GST_TYPE_RTP_KLV_DEPAY);
-}
index 71a256d2b8a6b4bbb71147d1f4d20e3d454a4b8f..e1042a73619558824de25fec4c95ca7840701501 100644 (file)
@@ -58,8 +58,6 @@ struct _GstRtpKlvDepayClass
 
 G_GNUC_INTERNAL GType     gst_rtp_klv_depay_get_type (void);
 
-G_GNUC_INTERNAL gboolean  gst_rtp_klv_depay_plugin_init (GstPlugin * plugin);
-
 G_END_DECLS
 
 #endif /* __GST_RTP_KLV_DEPAY_H__ */
index 779d6a70eb04845ad4e78d05c9fe0b4a77e43362..03a59a9160244d10694c4a9a65fb9e901e0ba2a4 100644 (file)
@@ -37,6 +37,7 @@
 #include "config.h"
 #endif
 
+#include "gstrtpelements.h"
 #include "gstrtpklvpay.h"
 #include "gstrtputils.h"
 
@@ -60,6 +61,8 @@ static GstStaticPadTemplate sink_template = GST_STATIC_PAD_TEMPLATE ("sink",
 
 #define gst_rtp_klv_pay_parent_class parent_class
 G_DEFINE_TYPE (GstRtpKlvPay, gst_rtp_klv_pay, GST_TYPE_RTP_BASE_PAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpklvpay, "rtpklvpay",
+    GST_RANK_SECONDARY, GST_TYPE_RTP_KLV_PAY, rtp_element_init (plugin));
 
 static gboolean gst_rtp_klv_pay_setcaps (GstRTPBasePayload * pay,
     GstCaps * caps);
@@ -195,10 +198,3 @@ bad_input:
     goto done;
   }
 }
-
-gboolean
-gst_rtp_klv_pay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtpklvpay",
-      GST_RANK_SECONDARY, GST_TYPE_RTP_KLV_PAY);
-}
index 9ee81342922027be9553972aa8388ebbf1ffbff7..41187d6cd997ab6b498163bf50569bc04275d1a6 100644 (file)
@@ -53,8 +53,6 @@ struct _GstRtpKlvPayClass
 
 G_GNUC_INTERNAL  GType     gst_rtp_klv_pay_get_type (void);
 
-G_GNUC_INTERNAL  gboolean  gst_rtp_klv_pay_plugin_init (GstPlugin * plugin);
-
 G_END_DECLS
 
 #endif /* __GST_RTP_KLV_PAY_H__ */
index 0e200ac0cfea512efa301d600c6ae999b23abf0e..2b14b746fe9e0f974418905296b5fceb2c23e3e6 100644 (file)
@@ -44,6 +44,7 @@
 #endif
 
 #include <gst/audio/audio.h>
+#include "gstrtpelements.h"
 #include "gstrtpldacpay.h"
 #include "gstrtputils.h"
 
@@ -56,6 +57,8 @@ GST_DEBUG_CATEGORY_STATIC (gst_rtp_ldac_pay_debug);
 
 #define parent_class gst_rtp_ldac_pay_parent_class
 G_DEFINE_TYPE (GstRtpLdacPay, gst_rtp_ldac_pay, GST_TYPE_RTP_BASE_PAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpldacpay, "rtpldacpay", GST_RANK_NONE,
+    GST_TYPE_RTP_LDAC_PAY, rtp_element_init (plugin));
 
 static GstStaticPadTemplate gst_rtp_ldac_pay_sink_factory =
 GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_SINK, GST_PAD_ALWAYS,
@@ -166,10 +169,3 @@ gst_rtp_ldac_pay_handle_buffer (GstRTPBasePayload * payload, GstBuffer * buffer)
 
   return gst_rtp_base_payload_push (GST_RTP_BASE_PAYLOAD (ldacpay), outbuf);
 }
-
-gboolean
-gst_rtp_ldac_pay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtpldacpay", GST_RANK_NONE,
-      GST_TYPE_RTP_LDAC_PAY);
-}
index 31a3108d2124c967635b410a2acb5d9404b392d4..e07dc2cd3deacf10b4d398baf13082998621202e 100644 (file)
@@ -24,6 +24,7 @@
 #include <gst/rtp/gstrtpbuffer.h>
 
 #include <string.h>
+#include "gstrtpelements.h"
 #include "gstrtpmp1sdepay.h"
 #include "gstrtputils.h"
 
@@ -63,6 +64,8 @@ static GstStaticPadTemplate gst_rtp_mp1s_depay_sink_template =
 
 G_DEFINE_TYPE (GstRtpMP1SDepay, gst_rtp_mp1s_depay,
     GST_TYPE_RTP_BASE_DEPAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpmp1sdepay, "rtpmp1sdepay",
+    GST_RANK_SECONDARY, GST_TYPE_RTP_MP1S_DEPAY, rtp_element_init (plugin));
 
 static gboolean gst_rtp_mp1s_depay_setcaps (GstRTPBaseDepayload * depayload,
     GstCaps * caps);
@@ -134,10 +137,3 @@ gst_rtp_mp1s_depay_process (GstRTPBaseDepayload * depayload, GstRTPBuffer * rtp)
 
   return outbuf;
 }
-
-gboolean
-gst_rtp_mp1s_depay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtpmp1sdepay",
-      GST_RANK_SECONDARY, GST_TYPE_RTP_MP1S_DEPAY);
-}
index 582933bad691688c37f23cc762c303810b7abaa5..e2e582c526a0600c8a4276dc16f67792e4f9f266 100644 (file)
@@ -51,8 +51,6 @@ struct _GstRtpMP1SDepayClass
 
 GType gst_rtp_mp1s_depay_get_type (void);
 
-gboolean gst_rtp_mp1s_depay_plugin_init (GstPlugin * plugin);
-
 G_END_DECLS
 
 #endif /* __GST_RTP_MP1S_DEPAY_H__ */
index f8e0d0c7b8dbadf0ce560d1820eedfc77321676b..7acf3f819d43c8acbc38ff4595976b76fa0485fb 100644 (file)
@@ -24,6 +24,7 @@
 #include <gst/rtp/gstrtpbuffer.h>
 
 #include <string.h>
+#include "gstrtpelements.h"
 #include "gstrtpmp2tdepay.h"
 #include "gstrtputils.h"
 
@@ -71,6 +72,8 @@ static GstStaticPadTemplate gst_rtp_mp2t_depay_sink_template =
 
 G_DEFINE_TYPE (GstRtpMP2TDepay, gst_rtp_mp2t_depay,
     GST_TYPE_RTP_BASE_DEPAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpmp2tdepay, "rtpmp2tdepay",
+    GST_RANK_SECONDARY, GST_TYPE_RTP_MP2T_DEPAY, rtp_element_init (plugin));
 
 static gboolean gst_rtp_mp2t_depay_setcaps (GstRTPBaseDepayload * depayload,
     GstCaps * caps);
@@ -234,10 +237,3 @@ gst_rtp_mp2t_depay_get_property (GObject * object, guint prop_id,
       break;
   }
 }
-
-gboolean
-gst_rtp_mp2t_depay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtpmp2tdepay",
-      GST_RANK_SECONDARY, GST_TYPE_RTP_MP2T_DEPAY);
-}
index aa936dca909ec39229cbfc59276d4dfec0f0f253..f1e5d0829b7cdcea388df06df2fc74ad8c8b2998 100644 (file)
@@ -53,8 +53,6 @@ struct _GstRtpMP2TDepayClass
 
 GType gst_rtp_mp2t_depay_get_type (void);
 
-gboolean gst_rtp_mp2t_depay_plugin_init (GstPlugin * plugin);
-
 G_END_DECLS
 
 #endif /* __GST_RTP_MP2T_DEPAY_H__ */
index 8dac50b9a957d0c0bd93d636121510f929b82aee..ecde5a298a054d53eba0a6c03d10460392b0cd54 100644 (file)
@@ -25,6 +25,7 @@
 #include <string.h>
 #include <gst/rtp/gstrtpbuffer.h>
 
+#include "gstrtpelements.h"
 #include "gstrtpmp2tpay.h"
 #include "gstrtputils.h"
 
@@ -59,6 +60,8 @@ static void gst_rtp_mp2t_pay_finalize (GObject * object);
 
 #define gst_rtp_mp2t_pay_parent_class parent_class
 G_DEFINE_TYPE (GstRTPMP2TPay, gst_rtp_mp2t_pay, GST_TYPE_RTP_BASE_PAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpmp2tpay, "rtpmp2tpay",
+    GST_RANK_SECONDARY, GST_TYPE_RTP_MP2T_PAY, rtp_element_init (plugin));
 
 static void
 gst_rtp_mp2t_pay_class_init (GstRTPMP2TPayClass * klass)
@@ -230,10 +233,3 @@ again:
   return ret;
 
 }
-
-gboolean
-gst_rtp_mp2t_pay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtpmp2tpay",
-      GST_RANK_SECONDARY, GST_TYPE_RTP_MP2T_PAY);
-}
index 12f49599fe46720716021bc31faa116f42188260..9ed02d9982df8bc45bf3038a927adefb35ba6553 100644 (file)
@@ -57,8 +57,6 @@ struct _GstRTPMP2TPayClass
 
 GType gst_rtp_mp2t_pay_get_type (void);
 
-gboolean gst_rtp_mp2t_pay_plugin_init (GstPlugin * plugin);
-
 G_END_DECLS
 
 #endif /* __GST_RTP_MP2T_PAY_H__ */
index 9177d7c3d20fd0be779e43d2cb7e511a01091599..f278fc598c5591fd668faf9f2146fba8bc198681 100644 (file)
@@ -26,6 +26,7 @@
 #include <gst/audio/audio.h>
 
 #include <string.h>
+#include "gstrtpelements.h"
 #include "gstrtpmp4adepay.h"
 #include "gstrtputils.h"
 
@@ -60,6 +61,8 @@ GST_STATIC_PAD_TEMPLATE ("sink",
 #define gst_rtp_mp4a_depay_parent_class parent_class
 G_DEFINE_TYPE (GstRtpMP4ADepay, gst_rtp_mp4a_depay,
     GST_TYPE_RTP_BASE_DEPAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpmp4adepay, "rtpmp4adepay",
+    GST_RANK_SECONDARY, GST_TYPE_RTP_MP4A_DEPAY, rtp_element_init (plugin));
 
 static void gst_rtp_mp4a_depay_finalize (GObject * object);
 
@@ -457,10 +460,3 @@ gst_rtp_mp4a_depay_change_state (GstElement * element,
   }
   return ret;
 }
-
-gboolean
-gst_rtp_mp4a_depay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtpmp4adepay",
-      GST_RANK_SECONDARY, GST_TYPE_RTP_MP4A_DEPAY);
-}
index 31eaf560ed6d005738ba52522a6de30e3f814c61..c5aaaa349663818c27af090203a0b63d77248cfd 100644 (file)
@@ -56,8 +56,6 @@ struct _GstRtpMP4ADepayClass
 
 GType gst_rtp_mp4a_depay_get_type (void);
 
-gboolean gst_rtp_mp4a_depay_plugin_init (GstPlugin * plugin);
-
 G_END_DECLS
 
 #endif /* __GST_RTP_MP4A_DEPAY_H__ */
index ab1eeb55a3545b57f43e615fd7870917d347db1f..bd37062287e66479bc7cea7b9fd372b78433b2f3 100644 (file)
@@ -26,6 +26,7 @@
 #include <gst/rtp/gstrtpbuffer.h>
 #include <gst/audio/audio.h>
 
+#include "gstrtpelements.h"
 #include "gstrtpmp4apay.h"
 #include "gstrtputils.h"
 
@@ -68,6 +69,8 @@ static GstFlowReturn gst_rtp_mp4a_pay_handle_buffer (GstRTPBasePayload *
 
 #define gst_rtp_mp4a_pay_parent_class parent_class
 G_DEFINE_TYPE (GstRtpMP4APay, gst_rtp_mp4a_pay, GST_TYPE_RTP_BASE_PAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpmp4apay, "rtpmp4apay",
+    GST_RANK_SECONDARY, GST_TYPE_RTP_MP4A_PAY, rtp_element_init (plugin));
 
 static void
 gst_rtp_mp4a_pay_class_init (GstRtpMP4APayClass * klass)
@@ -456,10 +459,3 @@ gst_rtp_mp4a_pay_handle_buffer (GstRTPBasePayload * basepayload,
 
   return ret;
 }
-
-gboolean
-gst_rtp_mp4a_pay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtpmp4apay",
-      GST_RANK_SECONDARY, GST_TYPE_RTP_MP4A_PAY);
-}
index 49d9b650d8f0ebba026d308dee2fa9bb4d4b0197..997aa3541557a10710ff7632e3166403a382a0db 100644 (file)
@@ -58,8 +58,6 @@ struct _GstRtpMP4APayClass
 
 GType gst_rtp_mp4a_pay_get_type (void);
 
-gboolean gst_rtp_mp4a_pay_plugin_init (GstPlugin * plugin);
-
 G_END_DECLS
 
 #endif /* __GST_RTP_MP4A_PAY_H__ */
index a734be065f972446f8bd8d9bf3ead20d2953cc65..8ee094d5bfa57629376a79ec14143b722955cd5d 100644 (file)
@@ -25,6 +25,7 @@
 #include <stdlib.h>
 #include <gst/rtp/gstrtpbuffer.h>
 
+#include "gstrtpelements.h"
 #include "gstrtpmp4gdepay.h"
 #include "gstrtputils.h"
 
@@ -129,6 +130,8 @@ gst_bs_parse_read (GstBsParse * bs, guint n)
 #define gst_rtp_mp4g_depay_parent_class parent_class
 G_DEFINE_TYPE (GstRtpMP4GDepay, gst_rtp_mp4g_depay,
     GST_TYPE_RTP_BASE_DEPAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpmp4gdepay, "rtpmp4gdepay",
+    GST_RANK_SECONDARY, GST_TYPE_RTP_MP4G_DEPAY, rtp_element_init (plugin));
 
 static void gst_rtp_mp4g_depay_finalize (GObject * object);
 
@@ -806,10 +809,3 @@ gst_rtp_mp4g_depay_change_state (GstElement * element,
   }
   return ret;
 }
-
-gboolean
-gst_rtp_mp4g_depay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtpmp4gdepay",
-      GST_RANK_SECONDARY, GST_TYPE_RTP_MP4G_DEPAY);
-}
index 843732813d4a5e2085f80813580e1ded8b0fe524..a6a88a0d4b62ea394ab7d784940433b1c0b3755e 100644 (file)
@@ -82,8 +82,6 @@ struct _GstRtpMP4GDepayClass
 
 GType gst_rtp_mp4g_depay_get_type (void);
 
-gboolean gst_rtp_mp4g_depay_plugin_init (GstPlugin * plugin);
-
 G_END_DECLS
 
 #endif /* __GST_RTP_MP4G_DEPAY_H__ */
index 532e2de25cf630e749757ba33139279ff7a64c4f..7e61e9f20d9d58411fba0ed56df2c3bfd0da8b81 100644 (file)
@@ -26,6 +26,7 @@
 #include <gst/base/gstbitreader.h>
 #include <gst/rtp/gstrtpbuffer.h>
 
+#include "gstrtpelements.h"
 #include "gstrtpmp4gpay.h"
 #include "gstrtputils.h"
 
@@ -88,6 +89,8 @@ static gboolean gst_rtp_mp4g_pay_sink_event (GstRTPBasePayload * payload,
 
 #define gst_rtp_mp4g_pay_parent_class parent_class
 G_DEFINE_TYPE (GstRtpMP4GPay, gst_rtp_mp4g_pay, GST_TYPE_RTP_BASE_PAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpmp4gpay, "rtpmp4gpay",
+    GST_RANK_SECONDARY, GST_TYPE_RTP_MP4G_PAY, rtp_element_init (plugin));
 
 static void
 gst_rtp_mp4g_pay_class_init (GstRtpMP4GPayClass * klass)
@@ -632,10 +635,3 @@ gst_rtp_mp4g_pay_change_state (GstElement * element, GstStateChange transition)
 
   return ret;
 }
-
-gboolean
-gst_rtp_mp4g_pay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtpmp4gpay",
-      GST_RANK_SECONDARY, GST_TYPE_RTP_MP4G_PAY);
-}
index 14fd68ab1a725fb2ea08ea57b85e85246d160c87..6e7a6258493ae90c89f29063666d45ac3c9e94ec 100644 (file)
@@ -65,8 +65,6 @@ struct _GstRtpMP4GPayClass
 
 GType gst_rtp_mp4g_pay_get_type (void);
 
-gboolean gst_rtp_mp4g_pay_plugin_init (GstPlugin * plugin);
-
 G_END_DECLS
 
 #endif /* __GST_RTP_MP4G_PAY_H__ */
index c860f88b8d7f1a81b27ee7645dadf33159fd7e89..204828c478494c25836b770445e5bfd7323e47e5 100644 (file)
@@ -25,6 +25,7 @@
 #include <gst/video/video.h>
 
 #include <string.h>
+#include "gstrtpelements.h"
 #include "gstrtpmp4vdepay.h"
 #include "gstrtputils.h"
 
@@ -57,6 +58,8 @@ GST_STATIC_PAD_TEMPLATE ("sink",
 #define gst_rtp_mp4v_depay_parent_class parent_class
 G_DEFINE_TYPE (GstRtpMP4VDepay, gst_rtp_mp4v_depay,
     GST_TYPE_RTP_BASE_DEPAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpmp4vdepay, "rtpmp4vdepay",
+    GST_RANK_SECONDARY, GST_TYPE_RTP_MP4V_DEPAY, rtp_element_init (plugin));
 
 static void gst_rtp_mp4v_depay_finalize (GObject * object);
 
@@ -218,10 +221,3 @@ gst_rtp_mp4v_depay_change_state (GstElement * element,
   }
   return ret;
 }
-
-gboolean
-gst_rtp_mp4v_depay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtpmp4vdepay",
-      GST_RANK_SECONDARY, GST_TYPE_RTP_MP4V_DEPAY);
-}
index 436e0db317bc84f42e412779fdb52076241551cb..0eecdf07fdf14c5a756e8251a024a96d16b5c0d1 100644 (file)
@@ -54,8 +54,6 @@ struct _GstRtpMP4VDepayClass
 
 GType gst_rtp_mp4v_depay_get_type (void);
 
-gboolean gst_rtp_mp4v_depay_plugin_init (GstPlugin * plugin);
-
 G_END_DECLS
 
 #endif /* __GST_RTP_MP4V_DEPAY_H__ */
index 30c679d4a85b36f1945b9c39709dc90afe3836af..f6a422970327fd5ce43e1730e2b4c7777b85cc4e 100644 (file)
@@ -26,6 +26,7 @@
 #include <gst/rtp/gstrtpbuffer.h>
 #include <gst/video/video.h>
 
+#include "gstrtpelements.h"
 #include "gstrtpmp4vpay.h"
 #include "gstrtputils.h"
 
@@ -81,6 +82,12 @@ static gboolean gst_rtp_mp4v_pay_sink_event (GstRTPBasePayload * pay,
 
 #define gst_rtp_mp4v_pay_parent_class parent_class
 G_DEFINE_TYPE (GstRtpMP4VPay, gst_rtp_mp4v_pay, GST_TYPE_RTP_BASE_PAYLOAD);
+/* Note: This element is marked at a "+1" rank to make sure that
+ * auto-plugging of payloaders for MPEG4 elementary streams don't
+ * end up using the 'rtpmp4gpay' element (generic mpeg4) which isn't
+ * as well supported as this RFC */
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpmp4vpay, "rtpmp4vpay",
+    GST_RANK_SECONDARY + 1, GST_TYPE_RTP_MP4V_PAY, rtp_element_init (plugin));
 
 static void
 gst_rtp_mp4v_pay_class_init (GstRtpMP4VPayClass * klass)
@@ -631,14 +638,3 @@ gst_rtp_mp4v_pay_get_property (GObject * object, guint prop_id,
       break;
   }
 }
-
-gboolean
-gst_rtp_mp4v_pay_plugin_init (GstPlugin * plugin)
-{
-  /* Note: This element is marked at a "+1" rank to make sure that
-   * auto-plugging of payloaders for MPEG4 elementary streams don't
-   * end up using the 'rtpmp4gpay' element (generic mpeg4) which isn't
-   * as well supported as this RFC */
-  return gst_element_register (plugin, "rtpmp4vpay",
-      GST_RANK_SECONDARY + 1, GST_TYPE_RTP_MP4V_PAY);
-}
index 26c0ba0dd4717e48ed8fe965c031e13192c73408..1d906fd6f38a173331205d25fc95d421acec82bd 100644 (file)
@@ -67,8 +67,6 @@ struct _GstRtpMP4VPayClass
 
 GType gst_rtp_mp4v_pay_get_type (void);
 
-gboolean gst_rtp_mp4v_pay_plugin_init (GstPlugin * plugin);
-
 G_END_DECLS
 
 #endif /* __GST_RTP_MP4V_PAY_H__ */
index 18506db2544977afd667ff5358d245757abfb6a5..afa852f329b9c36d696283850dbbf5046742da25 100644 (file)
@@ -25,6 +25,7 @@
 #include <gst/audio/audio.h>
 
 #include <string.h>
+#include "gstrtpelements.h"
 #include "gstrtpmpadepay.h"
 #include "gstrtputils.h"
 
@@ -53,6 +54,8 @@ static GstStaticPadTemplate gst_rtp_mpa_depay_sink_template =
 
 #define gst_rtp_mpa_depay_parent_class parent_class
 G_DEFINE_TYPE (GstRtpMPADepay, gst_rtp_mpa_depay, GST_TYPE_RTP_BASE_DEPAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpmpadepay, "rtpmpadepay",
+    GST_RANK_SECONDARY, GST_TYPE_RTP_MPA_DEPAY, rtp_element_init (plugin));
 
 static gboolean gst_rtp_mpa_depay_setcaps (GstRTPBaseDepayload * depayload,
     GstCaps * caps);
@@ -172,10 +175,3 @@ empty_packet:
     return NULL;
   }
 }
-
-gboolean
-gst_rtp_mpa_depay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtpmpadepay",
-      GST_RANK_SECONDARY, GST_TYPE_RTP_MPA_DEPAY);
-}
index 1070d779b4c7d568f555421e768c4b12638511cd..9c06df345e97f80566135ac5864678da3ee3041a 100644 (file)
@@ -51,8 +51,6 @@ struct _GstRtpMPADepayClass
 
 GType gst_rtp_mpa_depay_get_type (void);
 
-gboolean gst_rtp_mpa_depay_plugin_init (GstPlugin * plugin);
-
 G_END_DECLS
 
 #endif /* __GST_RTP_MPA_DEPAY_H__ */
index 62639f7127cc96c3af8c3e969a99a75065e90164..87ff430fdcd0528ced36011207904f74133485ff 100644 (file)
@@ -26,6 +26,7 @@
 #include <gst/rtp/gstrtpbuffer.h>
 #include <gst/audio/audio.h>
 
+#include "gstrtpelements.h"
 #include "gstrtpmpapay.h"
 #include "gstrtputils.h"
 
@@ -68,6 +69,8 @@ static GstFlowReturn gst_rtp_mpa_pay_handle_buffer (GstRTPBasePayload * payload,
 
 #define gst_rtp_mpa_pay_parent_class parent_class
 G_DEFINE_TYPE (GstRtpMPAPay, gst_rtp_mpa_pay, GST_TYPE_RTP_BASE_PAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpmpapay, "rtpmpapay",
+    GST_RANK_SECONDARY, GST_TYPE_RTP_MPA_PAY, rtp_element_init (plugin));
 
 static void
 gst_rtp_mpa_pay_class_init (GstRtpMPAPayClass * klass)
@@ -336,10 +339,3 @@ gst_rtp_mpa_pay_change_state (GstElement * element, GstStateChange transition)
   }
   return ret;
 }
-
-gboolean
-gst_rtp_mpa_pay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtpmpapay",
-      GST_RANK_SECONDARY, GST_TYPE_RTP_MPA_PAY);
-}
index db298528ec19d6830476356498012bee01155507..759ce87e816deaf6895654097262a22209177c43 100644 (file)
@@ -56,8 +56,6 @@ struct _GstRtpMPAPayClass
 
 GType gst_rtp_mpa_pay_get_type (void);
 
-gboolean gst_rtp_mpa_pay_plugin_init (GstPlugin * plugin);
-
 G_END_DECLS
 
 #endif /* __GST_RTP_MPA_PAY_H__ */
index 702d2b0eaa48dfe5c7692147dd7f14f171999e48..ca7f1f19a3123aba80bf02a67ecde482a73bdfdb 100644 (file)
@@ -26,6 +26,7 @@
 
 #include <stdio.h>
 #include <string.h>
+#include "gstrtpelements.h"
 #include "gstrtpmparobustdepay.h"
 
 GST_DEBUG_CATEGORY_STATIC (rtpmparobustdepay_debug);
@@ -70,6 +71,9 @@ typedef struct _GstADUFrame
 #define gst_rtp_mpa_robust_depay_parent_class parent_class
 G_DEFINE_TYPE (GstRtpMPARobustDepay, gst_rtp_mpa_robust_depay,
     GST_TYPE_RTP_BASE_DEPAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpmparobustdepay, "rtpmparobustdepay",
+    GST_RANK_SECONDARY, GST_TYPE_RTP_MPA_ROBUST_DEPAY,
+    rtp_element_init (plugin));
 
 static GstStateChangeReturn gst_rtp_mpa_robust_change_state (GstElement *
     element, GstStateChange transition);
@@ -802,10 +806,3 @@ gst_rtp_mpa_robust_change_state (GstElement * element,
 
   return ret;
 }
-
-gboolean
-gst_rtp_mpa_robust_depay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtpmparobustdepay",
-      GST_RANK_SECONDARY, GST_TYPE_RTP_MPA_ROBUST_DEPAY);
-}
index fc9ec0b694e7076e06943de6c4e09feaccdabb86..8a3f51bc5fce0a14045e4ca822041bf136195a7c 100644 (file)
@@ -71,8 +71,6 @@ struct _GstRtpMPARobustDepayClass
 
 GType gst_rtp_mpa_robust_depay_get_type (void);
 
-gboolean gst_rtp_mpa_robust_depay_plugin_init (GstPlugin * plugin);
-
 G_END_DECLS
 
 #endif /* __GST_RTP_MPA_ROBUST_DEPAY_H__ */
index 973194605eea61bff22ec1d82eec0355305ccfaf..71c0712514a524f4a6c2c70ed0004318c2e8880d 100644 (file)
@@ -25,6 +25,7 @@
 #include <gst/video/video.h>
 
 #include <string.h>
+#include "gstrtpelements.h"
 #include "gstrtpmpvdepay.h"
 #include "gstrtputils.h"
 
@@ -55,6 +56,8 @@ static GstStaticPadTemplate gst_rtp_mpv_depay_sink_template =
     );
 
 G_DEFINE_TYPE (GstRtpMPVDepay, gst_rtp_mpv_depay, GST_TYPE_RTP_BASE_DEPAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpmpvdepay, "rtpmpvdepay",
+    GST_RANK_SECONDARY, GST_TYPE_RTP_MPV_DEPAY, rtp_element_init (plugin));
 
 static gboolean gst_rtp_mpv_depay_setcaps (GstRTPBaseDepayload * depayload,
     GstCaps * caps);
@@ -189,10 +192,3 @@ empty_packet:
     return NULL;
   }
 }
-
-gboolean
-gst_rtp_mpv_depay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtpmpvdepay",
-      GST_RANK_SECONDARY, GST_TYPE_RTP_MPV_DEPAY);
-}
index 80f6c4332cd142207ddcae481d7561c1e731650e..158c2dcd40226ec2a7cc13cbe32160845c6775dc 100644 (file)
@@ -51,8 +51,6 @@ struct _GstRtpMPVDepayClass
 
 GType gst_rtp_mpv_depay_get_type (void);
 
-gboolean gst_rtp_mpv_depay_plugin_init (GstPlugin * plugin);
-
 G_END_DECLS
 
 #endif /* __GST_RTP_MPV_DEPAY_H__ */
index 24ad3c72c35c2851da848779691f165af219b4e8..ef8b4a654a101b35cd8d727107fb0becc01c2bda 100644 (file)
@@ -26,6 +26,7 @@
 #include <gst/rtp/gstrtpbuffer.h>
 #include <gst/video/video.h>
 
+#include "gstrtpelements.h"
 #include "gstrtpmpvpay.h"
 #include "gstrtputils.h"
 
@@ -69,6 +70,8 @@ static gboolean gst_rtp_mpv_pay_sink_event (GstRTPBasePayload * payload,
 
 #define gst_rtp_mpv_pay_parent_class parent_class
 G_DEFINE_TYPE (GstRTPMPVPay, gst_rtp_mpv_pay, GST_TYPE_RTP_BASE_PAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpmpvpay, "rtpmpvpay",
+    GST_RANK_SECONDARY, GST_TYPE_RTP_MPV_PAY, rtp_element_init (plugin));
 
 static void
 gst_rtp_mpv_pay_class_init (GstRTPMPVPayClass * klass)
@@ -327,11 +330,3 @@ gst_rtp_mpv_pay_change_state (GstElement * element, GstStateChange transition)
   }
   return ret;
 }
-
-
-gboolean
-gst_rtp_mpv_pay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtpmpvpay",
-      GST_RANK_SECONDARY, GST_TYPE_RTP_MPV_PAY);
-}
index bcebad932229180fa45d96738197013f99a1c862..a909ce92a0a2e26fbc2e36b80c59886bfb2204ff 100644 (file)
@@ -57,8 +57,6 @@ struct _GstRTPMPVPayClass
 
 GType gst_rtp_mpv_pay_get_type (void);
 
-gboolean gst_rtp_mpv_pay_plugin_init (GstPlugin * plugin);
-
 G_END_DECLS
 
 #endif /* __GST_RTP_MPV_PAY_H__ */
index dc9213b7e5f7ce5fc1133c5f253503967a01167f..26434e84f255df55450ded4de62aed51264f34f7 100644 (file)
@@ -27,6 +27,7 @@
 #include <stdlib.h>
 #include <gst/rtp/gstrtpbuffer.h>
 #include <gst/audio/audio.h>
+#include "gstrtpelements.h"
 #include "gstrtpopusdepay.h"
 #include "gstrtputils.h"
 
@@ -58,6 +59,8 @@ static gboolean gst_rtp_opus_depay_setcaps (GstRTPBaseDepayload * depayload,
 
 G_DEFINE_TYPE (GstRTPOpusDepay, gst_rtp_opus_depay,
     GST_TYPE_RTP_BASE_DEPAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpopusdepay, "rtpopusdepay",
+    GST_RANK_PRIMARY, GST_TYPE_RTP_OPUS_DEPAY, rtp_element_init (plugin));
 
 static void
 gst_rtp_opus_depay_class_init (GstRTPOpusDepayClass * klass)
@@ -251,10 +254,3 @@ gst_rtp_opus_depay_process (GstRTPBaseDepayload * depayload,
 
   return outbuf;
 }
-
-gboolean
-gst_rtp_opus_depay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtpopusdepay",
-      GST_RANK_PRIMARY, GST_TYPE_RTP_OPUS_DEPAY);
-}
index 38cc851080d40fbb2b45d2b12da8849de862c3c5..7890eb19d565e6c2889c44bfd5d20b98216065e4 100644 (file)
@@ -53,7 +53,5 @@ struct _GstRTPOpusDepayClass
 
 GType gst_rtp_opus_depay_get_type (void);
 
-gboolean gst_rtp_opus_depay_plugin_init (GstPlugin * plugin);
-
 G_END_DECLS
 #endif /* __GST_RTP_OPUS_DEPAY_H__ */
index 260602e5347b049069e13a18bd8209d0f3c35351..bee7bb5b4c540a826ddca9703d3dbcba4e13156a 100644 (file)
@@ -51,6 +51,7 @@
 #include <gst/rtp/gstrtpbuffer.h>
 #include <gst/audio/audio.h>
 
+#include "gstrtpelements.h"
 #include "gstrtpopuspay.h"
 #include "gstrtputils.h"
 
@@ -86,6 +87,8 @@ static GstFlowReturn gst_rtp_opus_pay_handle_buffer (GstRTPBasePayload *
     payload, GstBuffer * buffer);
 
 G_DEFINE_TYPE (GstRtpOPUSPay, gst_rtp_opus_pay, GST_TYPE_RTP_BASE_PAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpopuspay, "rtpopuspay",
+    GST_RANK_PRIMARY, GST_TYPE_RTP_OPUS_PAY, rtp_element_init (plugin));
 
 static void
 gst_rtp_opus_pay_class_init (GstRtpOPUSPayClass * klass)
@@ -312,10 +315,3 @@ gst_rtp_opus_pay_getcaps (GstRTPBasePayload * payload,
   GST_DEBUG_OBJECT (payload, "Returning caps: %" GST_PTR_FORMAT, caps);
   return caps;
 }
-
-gboolean
-gst_rtp_opus_pay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtpopuspay",
-      GST_RANK_PRIMARY, GST_TYPE_RTP_OPUS_PAY);
-}
index 45f40d85e9d0b7d619c47d6a958d5f5b73ef72e2..e21bbe3c3860b79ea00251e2f9a4ba0e2f39d159 100644 (file)
@@ -53,8 +53,6 @@ struct _GstRtpOPUSPayClass
 
 GType gst_rtp_opus_pay_get_type (void);
 
-gboolean gst_rtp_opus_pay_plugin_init (GstPlugin * plugin);
-
 G_END_DECLS
 
 #endif /* __GST_RTP_OPUS_PAY_H__ */
index 476a20aadd7c6b3c6091c2883e2332f196cea723..82727fbe93c901334ef9517188028ade0c54d7ff 100644 (file)
@@ -26,6 +26,7 @@
 #include <string.h>
 #include <gst/rtp/gstrtpbuffer.h>
 #include <gst/audio/audio.h>
+#include "gstrtpelements.h"
 #include "gstrtppcmadepay.h"
 #include "gstrtputils.h"
 
@@ -69,6 +70,8 @@ static gboolean gst_rtp_pcma_depay_setcaps (GstRTPBaseDepayload * depayload,
 #define gst_rtp_pcma_depay_parent_class parent_class
 G_DEFINE_TYPE (GstRtpPcmaDepay, gst_rtp_pcma_depay,
     GST_TYPE_RTP_BASE_DEPAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtppcmadepay, "rtppcmadepay",
+    GST_RANK_SECONDARY, GST_TYPE_RTP_PCMA_DEPAY, rtp_element_init (plugin));
 
 static void
 gst_rtp_pcma_depay_class_init (GstRtpPcmaDepayClass * klass)
@@ -155,10 +158,3 @@ gst_rtp_pcma_depay_process (GstRTPBaseDepayload * depayload, GstRTPBuffer * rtp)
 
   return outbuf;
 }
-
-gboolean
-gst_rtp_pcma_depay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtppcmadepay",
-      GST_RANK_SECONDARY, GST_TYPE_RTP_PCMA_DEPAY);
-}
index e664a2d3d86efdc14f7786f2ec7ece44f3ab135e..c74bd053110eafda8df041e77f58190b0bb76954 100644 (file)
@@ -46,8 +46,6 @@ struct _GstRtpPcmaDepayClass
 
 GType gst_rtp_pcma_depay_get_type (void);
 
-gboolean gst_rtp_pcma_depay_plugin_init (GstPlugin * plugin);
-
 G_END_DECLS
 
 #endif /* __GST_RTP_PCMA_DEPAY_H__ */
index fde1b647cfe0d6a9bd7724b63ee33999599bb4b9..c51639633ca28de549d9de03bae5493f6b624a73 100644 (file)
@@ -27,6 +27,7 @@
 #include <string.h>
 #include <gst/rtp/gstrtpbuffer.h>
 
+#include "gstrtpelements.h"
 #include "gstrtppcmapay.h"
 
 static GstStaticPadTemplate gst_rtp_pcma_pay_sink_template =
@@ -56,6 +57,8 @@ static gboolean gst_rtp_pcma_pay_setcaps (GstRTPBasePayload * payload,
 #define gst_rtp_pcma_pay_parent_class parent_class
 G_DEFINE_TYPE (GstRtpPcmaPay, gst_rtp_pcma_pay,
     GST_TYPE_RTP_BASE_AUDIO_PAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtppcmapay, "rtppcmapay",
+    GST_RANK_SECONDARY, GST_TYPE_RTP_PCMA_PAY, rtp_element_init (plugin));
 
 static void
 gst_rtp_pcma_pay_class_init (GstRtpPcmaPayClass * klass)
@@ -107,10 +110,3 @@ gst_rtp_pcma_pay_setcaps (GstRTPBasePayload * payload, GstCaps * caps)
 
   return res;
 }
-
-gboolean
-gst_rtp_pcma_pay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtppcmapay",
-      GST_RANK_SECONDARY, GST_TYPE_RTP_PCMA_PAY);
-}
index 4e084ad094566ed63e98ef4751543662350a0705..7f67dffcd147c819b0af0ee895668d1e1bc4c86c 100644 (file)
@@ -47,8 +47,6 @@ struct _GstRtpPcmaPayClass
 
 GType gst_rtp_pcma_pay_get_type (void);
 
-gboolean gst_rtp_pcma_pay_plugin_init (GstPlugin * plugin);
-
 G_END_DECLS
 
 #endif /* __GST_RTP_PCMA_PAY_H__ */
index 1a06d187afe28f7e873838a920c81b86c3115d04..9bd3afb3d61c4792a863be08e6a3dcf60e380f00 100644 (file)
@@ -26,6 +26,7 @@
 #include <string.h>
 #include <gst/rtp/gstrtpbuffer.h>
 #include <gst/audio/audio.h>
+#include "gstrtpelements.h"
 #include "gstrtppcmudepay.h"
 #include "gstrtputils.h"
 
@@ -70,6 +71,8 @@ static gboolean gst_rtp_pcmu_depay_setcaps (GstRTPBaseDepayload * depayload,
 #define gst_rtp_pcmu_depay_parent_class parent_class
 G_DEFINE_TYPE (GstRtpPcmuDepay, gst_rtp_pcmu_depay,
     GST_TYPE_RTP_BASE_DEPAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtppcmudepay, "rtppcmudepay",
+    GST_RANK_SECONDARY, GST_TYPE_RTP_PCMU_DEPAY, rtp_element_init (plugin));
 
 static void
 gst_rtp_pcmu_depay_class_init (GstRtpPcmuDepayClass * klass)
@@ -156,10 +159,3 @@ gst_rtp_pcmu_depay_process (GstRTPBaseDepayload * depayload, GstRTPBuffer * rtp)
 
   return outbuf;
 }
-
-gboolean
-gst_rtp_pcmu_depay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtppcmudepay",
-      GST_RANK_SECONDARY, GST_TYPE_RTP_PCMU_DEPAY);
-}
index 6a97559f896494b0c2a457dd1770995f676e7715..a3d017349ac1b3ad0974260c7ceb54386936eed1 100644 (file)
@@ -46,8 +46,6 @@ struct _GstRtpPcmuDepayClass
 
 GType gst_rtp_pcmu_depay_get_type (void);
 
-gboolean gst_rtp_pcmu_depay_plugin_init (GstPlugin * plugin);
-
 G_END_DECLS
 
 #endif /* __GST_RTP_PCMU_DEPAY_H__ */
index 5931f85e214b51196c8e61210abd7b326e23396e..5662789cbc761d9db1fb919f45c7992c25084692 100644 (file)
@@ -27,6 +27,7 @@
 #include <string.h>
 #include <gst/rtp/gstrtpbuffer.h>
 
+#include "gstrtpelements.h"
 #include "gstrtppcmupay.h"
 
 static GstStaticPadTemplate gst_rtp_pcmu_pay_sink_template =
@@ -56,6 +57,8 @@ static gboolean gst_rtp_pcmu_pay_setcaps (GstRTPBasePayload * payload,
 #define gst_rtp_pcmu_pay_parent_class parent_class
 G_DEFINE_TYPE (GstRtpPcmuPay, gst_rtp_pcmu_pay,
     GST_TYPE_RTP_BASE_AUDIO_PAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtppcmupay, "rtppcmupay",
+    GST_RANK_SECONDARY, GST_TYPE_RTP_PCMU_PAY, rtp_element_init (plugin));
 
 static void
 gst_rtp_pcmu_pay_class_init (GstRtpPcmuPayClass * klass)
@@ -107,10 +110,3 @@ gst_rtp_pcmu_pay_setcaps (GstRTPBasePayload * payload, GstCaps * caps)
 
   return res;
 }
-
-gboolean
-gst_rtp_pcmu_pay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtppcmupay",
-      GST_RANK_SECONDARY, GST_TYPE_RTP_PCMU_PAY);
-}
index 7529d461c336eda716d6133e9341bce2605acfcb..cdeb3a2bfaec09db055293f7366d721761a5fcc8 100644 (file)
@@ -47,8 +47,6 @@ struct _GstRtpPcmuPayClass
 
 GType gst_rtp_pcmu_pay_get_type (void);
 
-gboolean gst_rtp_pcmu_pay_plugin_init (GstPlugin * plugin);
-
 G_END_DECLS
 
 #endif /* __GST_RTP_PCMU_PAY_H__ */
index cb5d9eb95b7f3ba818b3ef6c6eabe1782bd23a82..949cf605bafc7c80c303b150f8bc1cdb4182e410 100644 (file)
@@ -26,6 +26,7 @@
 
 #include <stdlib.h>
 #include <string.h>
+#include "gstrtpelements.h"
 #include "gstrtpqcelpdepay.h"
 #include "gstrtputils.h"
 
@@ -81,6 +82,8 @@ static GstBuffer *gst_rtp_qcelp_depay_process (GstRTPBaseDepayload * depayload,
 #define gst_rtp_qcelp_depay_parent_class parent_class
 G_DEFINE_TYPE (GstRtpQCELPDepay, gst_rtp_qcelp_depay,
     GST_TYPE_RTP_BASE_DEPAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpqcelpdepay, "rtpqcelpdepay",
+    GST_RANK_SECONDARY, GST_TYPE_RTP_QCELP_DEPAY, rtp_element_init (plugin));
 
 static void
 gst_rtp_qcelp_depay_class_init (GstRtpQCELPDepayClass * klass)
@@ -423,10 +426,3 @@ invalid_frame:
     return NULL;
   }
 }
-
-gboolean
-gst_rtp_qcelp_depay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtpqcelpdepay",
-      GST_RANK_SECONDARY, GST_TYPE_RTP_QCELP_DEPAY);
-}
index ade274de0158b394b6ddedc7cada8d609451b81f..f278a7339a3586bd3f61cbe0ce396ea2306d0e4e 100644 (file)
@@ -55,8 +55,6 @@ struct _GstRtpQCELPDepayClass
 
 GType gst_rtp_qcelp_depay_get_type (void);
 
-gboolean gst_rtp_qcelp_depay_plugin_init (GstPlugin * plugin);
-
 G_END_DECLS
 
 #endif /* __GST_RTP_QCELP_DEPAY_H__ */
index 898663aa7a994d9586a1bbdd643004f227574175..3edfb46301710cbc74f65bc684219b9ab8088a83 100644 (file)
@@ -25,6 +25,7 @@
 
 #include <gst/rtp/gstrtpbuffer.h>
 #include <gst/audio/audio.h>
+#include "gstrtpelements.h"
 #include "gstrtpqdmdepay.h"
 #include "gstrtputils.h"
 
@@ -49,6 +50,12 @@ GST_STATIC_PAD_TEMPLATE ("sink",
 #define gst_rtp_qdm2_depay_parent_class parent_class
 G_DEFINE_TYPE (GstRtpQDM2Depay, gst_rtp_qdm2_depay,
     GST_TYPE_RTP_BASE_DEPAYLOAD);
+#define _do_init \
+  GST_DEBUG_CATEGORY_INIT (rtpqdm2depay_debug, "rtpqdm2depay", 0, \
+      "RTP QDM2 depayloader"); \
+  rtp_element_init (plugin)
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpqdm2depay, "rtpqdm2depay",
+    GST_RANK_SECONDARY, GST_TYPE_RTP_QDM2_DEPAY, _do_init);
 
 static const guint8 headheader[20] = {
   0x0, 0x0, 0x0, 0xc, 0x66, 0x72, 0x6d, 0x61,
@@ -402,13 +409,3 @@ gst_rtp_qdm2_depay_change_state (GstElement * element,
   }
   return ret;
 }
-
-gboolean
-gst_rtp_qdm2_depay_plugin_init (GstPlugin * plugin)
-{
-  GST_DEBUG_CATEGORY_INIT (rtpqdm2depay_debug, "rtpqdm2depay", 0,
-      "RTP QDM2 depayloader");
-
-  return gst_element_register (plugin, "rtpqdm2depay",
-      GST_RANK_SECONDARY, GST_TYPE_RTP_QDM2_DEPAY);
-}
index 8a6b2b20a3d402875da97b9f9576130485777999..d5d37566e784d61e9e1eef4f2f86fcb010c06c53 100644 (file)
@@ -78,8 +78,6 @@ struct _GstRtpQDM2DepayClass
 
 GType gst_rtp_qdm2_depay_get_type (void);
 
-gboolean gst_rtp_qdm2_depay_plugin_init (GstPlugin * plugin);
-
 G_END_DECLS
 
 #endif /* __GST_RTP_QDM2_DEPAY_H__ */
index 1e4781727809ead552d128938b8e3bcab6fd85cb..c9482cbefa278864ff11a16708bb947967adbd3f 100644 (file)
@@ -48,6 +48,7 @@
 
 #include <gst/rtp/gstrtpbuffer.h>
 
+#include "gstrtpelements.h"
 #include "rtpredcommon.h"
 #include "gstrtpreddec.h"
 #include "rtpulpfeccommon.h"
@@ -82,6 +83,8 @@ GST_DEBUG_CATEGORY_STATIC (gst_rtp_red_dec_debug);
 #define GST_CAT_DEFAULT gst_rtp_red_dec_debug
 
 G_DEFINE_TYPE (GstRtpRedDec, gst_rtp_red_dec, GST_TYPE_ELEMENT);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpreddec, "rtpreddec", GST_RANK_NONE,
+    GST_TYPE_RTP_RED_DEC, rtp_element_init (plugin));
 
 enum
 {
index f192b7862f68a1c9352c08dcb099d963f7073caa..862f799cecdfb6124a7bcbe7d779cc9bb863ac7a 100644 (file)
@@ -52,6 +52,7 @@
 #include <string.h>
 #include <stdio.h>
 
+#include "gstrtpelements.h"
 #include "rtpredcommon.h"
 #include "gstrtpredenc.h"
 
@@ -78,8 +79,9 @@ static GstStaticPadTemplate src_template = GST_STATIC_PAD_TEMPLATE ("src",
 
 GST_DEBUG_CATEGORY_STATIC (gst_rtp_red_enc_debug);
 #define GST_CAT_DEFAULT (gst_rtp_red_enc_debug)
-
 G_DEFINE_TYPE (GstRtpRedEnc, gst_rtp_red_enc, GST_TYPE_ELEMENT);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpredenc, "rtpredenc", GST_RANK_NONE,
+    GST_TYPE_RTP_RED_ENC, rtp_element_init (plugin));
 
 enum
 {
index 9549bb06a220460d6e0f607af93ca4f7a8e15c85..f5dec8b787aa6bf4e3fdc563db61e3084c581456 100644 (file)
@@ -26,6 +26,7 @@
 
 #include <gst/rtp/gstrtpbuffer.h>
 #include <gst/audio/audio.h>
+#include "gstrtpelements.h"
 #include "gstrtpsbcdepay.h"
 #include "gstrtputils.h"
 
@@ -64,6 +65,8 @@ enum
 
 #define gst_rtp_sbc_depay_parent_class parent_class
 G_DEFINE_TYPE (GstRtpSbcDepay, gst_rtp_sbc_depay, GST_TYPE_RTP_BASE_DEPAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpsbcdepay, "rtpsbcdepay",
+    GST_RANK_SECONDARY, GST_TYPE_RTP_SBC_DEPAY, rtp_element_init (plugin));
 
 static void gst_rtp_sbc_depay_set_property (GObject * object,
     guint prop_id, const GValue * value, GParamSpec * pspec);
@@ -386,10 +389,3 @@ bad_packet:
       ("Received invalid RTP payload, dropping"), (NULL));
   goto out;
 }
-
-gboolean
-gst_rtp_sbc_depay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtpsbcdepay", GST_RANK_SECONDARY,
-      GST_TYPE_RTP_SBC_DEPAY);
-}
index 9cac3add23b347b02b0287a8a24a8b64505dd094..bc5a3967245fff473b8cdffb0047b7459ee4adc4 100644 (file)
@@ -64,7 +64,5 @@ struct _GstRtpSbcDepayClass
 
 GType gst_rtp_sbc_depay_get_type (void);
 
-gboolean gst_rtp_sbc_depay_plugin_init (GstPlugin * plugin);
-
 G_END_DECLS
 #endif
index f2cf849ec893846f6b6300a04811a67a58cbbafc..98e21a0f762417c86fead175d35dad0aca9ef356 100644 (file)
@@ -24,6 +24,7 @@
 #endif
 
 #include <gst/audio/audio.h>
+#include "gstrtpelements.h"
 #include "gstrtpsbcpay.h"
 #include <math.h>
 #include <string.h>
@@ -80,6 +81,8 @@ GST_DEBUG_CATEGORY_STATIC (gst_rtp_sbc_pay_debug);
 
 #define parent_class gst_rtp_sbc_pay_parent_class
 G_DEFINE_TYPE (GstRtpSBCPay, gst_rtp_sbc_pay, GST_TYPE_RTP_BASE_PAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpsbcpay, "rtpsbcpay", GST_RANK_NONE,
+    GST_TYPE_RTP_SBC_PAY, rtp_element_init (plugin));
 
 static GstStaticPadTemplate gst_rtp_sbc_pay_sink_factory =
 GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_SINK, GST_PAD_ALWAYS,
@@ -376,10 +379,3 @@ gst_rtp_sbc_pay_init (GstRtpSBCPay * self)
 
   self->min_frames = DEFAULT_MIN_FRAMES;
 }
-
-gboolean
-gst_rtp_sbc_pay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtpsbcpay", GST_RANK_NONE,
-      GST_TYPE_RTP_SBC_PAY);
-}
index e57022980e29a06f8f8108386ca8de46c5a2e2fd..6f42c1e749b68bc2618d8510fe08ee3041fe1601 100644 (file)
@@ -60,6 +60,4 @@ struct _GstRtpSBCPayClass {
 
 GType gst_rtp_sbc_pay_get_type(void);
 
-gboolean gst_rtp_sbc_pay_plugin_init (GstPlugin * plugin);
-
 G_END_DECLS
index f227268107317ad1ffe2ae50a1a6a1b0b0903e50..86a9dfffe16b79301983ae4298812821e6cadca9 100644 (file)
@@ -27,6 +27,7 @@
 #include <stdlib.h>
 #include <gst/rtp/gstrtpbuffer.h>
 #include <gst/audio/audio.h>
+#include "gstrtpelements.h"
 #include "gstrtpsirendepay.h"
 #include "gstrtputils.h"
 
@@ -55,6 +56,8 @@ GST_STATIC_PAD_TEMPLATE ("sink",
 
 G_DEFINE_TYPE (GstRTPSirenDepay, gst_rtp_siren_depay,
     GST_TYPE_RTP_BASE_DEPAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpsirendepay, "rtpsirendepay",
+    GST_RANK_SECONDARY, GST_TYPE_RTP_SIREN_DEPAY, rtp_element_init (plugin));
 
      static void gst_rtp_siren_depay_class_init (GstRTPSirenDepayClass * klass)
 {
@@ -116,10 +119,3 @@ gst_rtp_siren_depay_process (GstRTPBaseDepayload * depayload,
 
   return outbuf;
 }
-
-gboolean
-gst_rtp_siren_depay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtpsirendepay",
-      GST_RANK_SECONDARY, GST_TYPE_RTP_SIREN_DEPAY);
-}
index d1ffb11e040a97811923331c9a18a8cf4ae7b024..cdc108add98dcb1cb161f249a7b2441cd6664d5f 100644 (file)
@@ -53,7 +53,5 @@ struct _GstRTPSirenDepayClass
 
 GType gst_rtp_siren_depay_get_type (void);
 
-gboolean gst_rtp_siren_depay_plugin_init (GstPlugin * plugin);
-
 G_END_DECLS
 #endif /* __GST_RTP_SIREN_DEPAY_H__ */
index 04f9aa8176b49592c0455da24cab26da526da8c9..93385a43fb32e7ea8e929675351d847ad16b2ef0 100644 (file)
@@ -23,6 +23,7 @@
 #include "config.h"
 #endif
 
+#include "gstrtpelements.h"
 #include "gstrtpsirenpay.h"
 #include <gst/rtp/gstrtpbuffer.h>
 
@@ -53,6 +54,8 @@ static gboolean gst_rtp_siren_pay_setcaps (GstRTPBasePayload * payload,
 
 G_DEFINE_TYPE (GstRTPSirenPay, gst_rtp_siren_pay,
     GST_TYPE_RTP_BASE_AUDIO_PAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpsirenpay, "rtpsirenpay",
+    GST_RANK_SECONDARY, GST_TYPE_RTP_SIREN_PAY, rtp_element_init (plugin));
 
 static void
 gst_rtp_siren_pay_class_init (GstRTPSirenPayClass * klass)
@@ -138,10 +141,3 @@ wrong_caps:
     return FALSE;
   }
 }
-
-gboolean
-gst_rtp_siren_pay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtpsirenpay",
-      GST_RANK_SECONDARY, GST_TYPE_RTP_SIREN_PAY);
-}
index eaba5b5a48b5db5cd8c479a78743ea6b980ad449..56fc664ba4319a8f8f708518a99b9b2fed4529ad 100644 (file)
@@ -51,7 +51,5 @@ struct _GstRTPSirenPayClass
 
 GType gst_rtp_siren_pay_get_type (void);
 
-gboolean gst_rtp_siren_pay_plugin_init (GstPlugin * plugin);
-
 G_END_DECLS
 #endif /* __GST_RTP_SIREN_PAY_H__ */
index a2c987bd6075d1a7f0474bb43989a511adfa27cf..ca70cd3e2a404bc82637b656c9f044179dcab904 100644 (file)
@@ -26,6 +26,7 @@
 #include <gst/rtp/gstrtpbuffer.h>
 #include <gst/audio/audio.h>
 
+#include "gstrtpelements.h"
 #include "gstrtpspeexdepay.h"
 #include "gstrtputils.h"
 
@@ -66,6 +67,8 @@ static gboolean gst_rtp_speex_depay_setcaps (GstRTPBaseDepayload * depayload,
 
 G_DEFINE_TYPE (GstRtpSPEEXDepay, gst_rtp_speex_depay,
     GST_TYPE_RTP_BASE_DEPAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpspeexdepay, "rtpspeexdepay",
+    GST_RANK_SECONDARY, GST_TYPE_RTP_SPEEX_DEPAY, rtp_element_init (plugin));
 
 static void
 gst_rtp_speex_depay_class_init (GstRtpSPEEXDepayClass * klass)
@@ -217,10 +220,3 @@ gst_rtp_speex_depay_process (GstRTPBaseDepayload * depayload,
 
   return outbuf;
 }
-
-gboolean
-gst_rtp_speex_depay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtpspeexdepay",
-      GST_RANK_SECONDARY, GST_TYPE_RTP_SPEEX_DEPAY);
-}
index 59ffed0306f992f32224f605e2936dd256065711..3961ef1cd74a7d0f084ca629936cbe4bdd514f51 100644 (file)
@@ -46,8 +46,6 @@ struct _GstRtpSPEEXDepayClass
 
 GType gst_rtp_speex_depay_get_type (void);
 
-gboolean gst_rtp_speex_depay_plugin_init (GstPlugin * plugin);
-
 G_END_DECLS
 
 #endif /* __GST_RTP_SPEEX_DEPAY_H__ */
index 6f086b0103b9e1c91b2dc03ae27ee1ff15d9b0ab..17b2aa59e3770fbf8770336754a6b6a7e0f9addf 100644 (file)
@@ -26,6 +26,7 @@
 #include <gst/rtp/gstrtpbuffer.h>
 #include <gst/audio/audio.h>
 
+#include "gstrtpelements.h"
 #include "gstrtpspeexpay.h"
 #include "gstrtputils.h"
 
@@ -64,6 +65,8 @@ static GstFlowReturn gst_rtp_speex_pay_handle_buffer (GstRTPBasePayload *
 
 #define gst_rtp_speex_pay_parent_class parent_class
 G_DEFINE_TYPE (GstRtpSPEEXPay, gst_rtp_speex_pay, GST_TYPE_RTP_BASE_PAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpspeexpay, "rtpspeexpay",
+    GST_RANK_SECONDARY, GST_TYPE_RTP_SPEEX_PAY, rtp_element_init (plugin));
 
 static void
 gst_rtp_speex_pay_class_init (GstRtpSPEEXPayClass * klass)
@@ -341,10 +344,3 @@ gst_rtp_speex_pay_change_state (GstElement * element, GstStateChange transition)
   }
   return ret;
 }
-
-gboolean
-gst_rtp_speex_pay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtpspeexpay",
-      GST_RANK_SECONDARY, GST_TYPE_RTP_SPEEX_PAY);
-}
index 0ccaefbaeabd6495a5b05b899bcdf2667a5b2688..a89350e4c4a9a3e8903db5091add564d7c17d17a 100644 (file)
@@ -49,8 +49,6 @@ struct _GstRtpSPEEXPayClass
 
 GType gst_rtp_speex_pay_get_type (void);
 
-gboolean gst_rtp_speex_pay_plugin_init (GstPlugin * plugin);
-
 G_END_DECLS
 
 #endif /* __GST_RTP_SPEEX_PAY_H__ */
index b43eb982c603ab7f09a3274e240b7d22edcb3dd8..a3e1593ceb5fa46a46f4b69dc02ba78c2065fd9c 100644 (file)
@@ -53,6 +53,7 @@
  * Since: 1.14
  */
 
+#include "gstrtpelements.h"
 #include "gstrtpstorage.h"
 
 static GstStaticPadTemplate sinktemplate = GST_STATIC_PAD_TEMPLATE ("sink",
@@ -83,6 +84,8 @@ GST_DEBUG_CATEGORY (gst_rtp_storage_debug);
 #define GST_CAT_DEFAULT (gst_rtp_storage_debug)
 
 G_DEFINE_TYPE (GstRtpStorage, gst_rtp_storage, GST_TYPE_ELEMENT);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpstorage, "rtpstorage", GST_RANK_NONE,
+    GST_TYPE_RTP_STORAGE, rtp_element_init (plugin));
 
 static GstFlowReturn
 gst_rtp_storage_chain (GstPad * pad, GstObject * parent, GstBuffer * buf)
index bcaec19ea20f5577cfb05ffd856c97982ff32066..978c75301945fed099589bf3b2b607547c25dea1 100644 (file)
@@ -36,6 +36,7 @@
 #include "config.h"
 #endif
 
+#include "gstrtpelements.h"
 #include "gstrtpstreamdepay.h"
 
 GST_DEBUG_CATEGORY (gst_rtp_stream_depay_debug);
@@ -57,6 +58,8 @@ static GstStaticPadTemplate sink_template =
 
 #define parent_class gst_rtp_stream_depay_parent_class
 G_DEFINE_TYPE (GstRtpStreamDepay, gst_rtp_stream_depay, GST_TYPE_BASE_PARSE);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpstreamdepay, "rtpstreamdepay",
+    GST_RANK_NONE, GST_TYPE_RTP_STREAM_DEPAY, rtp_element_init (plugin));
 
 static gboolean gst_rtp_stream_depay_set_sink_caps (GstBaseParse * parse,
     GstCaps * caps);
@@ -223,10 +226,3 @@ gst_rtp_stream_depay_sink_activate (GstPad * pad, GstObject * parent)
 {
   return gst_pad_activate_mode (pad, GST_PAD_MODE_PUSH, TRUE);
 }
-
-gboolean
-gst_rtp_stream_depay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtpstreamdepay",
-      GST_RANK_NONE, GST_TYPE_RTP_STREAM_DEPAY);
-}
index b6011cb5527ff375a8c59aa63aac8b3eca05b61d..32bd6c142b3630477225715272be4b36e18889df 100644 (file)
@@ -50,7 +50,6 @@ struct _GstRtpStreamDepayClass
 };
 
 GType gst_rtp_stream_depay_get_type (void);
-gboolean gst_rtp_stream_depay_plugin_init (GstPlugin * plugin);
 
 G_END_DECLS
 
index b5758228ba09920ea305f6cb2570f256768548aa..51206ffb9dca7eed017ad91a51fc2a901baf86b6 100644 (file)
@@ -37,6 +37,7 @@
 #include "config.h"
 #endif
 
+#include "gstrtpelements.h"
 #include "gstrtpstreampay.h"
 
 #define GST_CAT_DEFAULT gst_rtp_stream_pay_debug
@@ -58,6 +59,8 @@ static GstStaticPadTemplate src_template = GST_STATIC_PAD_TEMPLATE ("src",
 
 #define parent_class gst_rtp_stream_pay_parent_class
 G_DEFINE_TYPE (GstRtpStreamPay, gst_rtp_stream_pay, GST_TYPE_ELEMENT);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpstreampay, "rtpstreampay",
+    GST_RANK_NONE, GST_TYPE_RTP_STREAM_PAY, rtp_element_init (plugin));
 
 static gboolean gst_rtp_stream_pay_sink_query (GstPad * pad, GstObject * parent,
     GstQuery * query);
@@ -277,10 +280,3 @@ gst_rtp_stream_pay_sink_chain (GstPad * pad, GstObject * parent,
 
   return gst_pad_push (self->srcpad, outbuf);
 }
-
-gboolean
-gst_rtp_stream_pay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtpstreampay",
-      GST_RANK_NONE, GST_TYPE_RTP_STREAM_PAY);
-}
index a9436a8fdd2d4e812d3420f20f39d57e87dd33d3..b90165af2c0950a12846fba250c14139f76d32f3 100644 (file)
@@ -47,8 +47,6 @@ struct _GstRtpStreamPayClass {
 
 GType gst_rtp_stream_pay_get_type (void);
 
-gboolean gst_rtp_stream_pay_plugin_init (GstPlugin * plugin);
-
 G_END_DECLS
 
 #endif /* __GST_RTP_STREAM_PAY_H__ */
index 3d091c2b8c28a0e8b7868fbd51ed3c6714f64a45..5e13db4f188a51db6fe5c0eb94d78bd2ddb7d6a9 100644 (file)
@@ -25,6 +25,7 @@
 
 #include <gst/rtp/gstrtpbuffer.h>
 #include <gst/video/video.h>
+#include "gstrtpelements.h"
 #include "gstrtpsv3vdepay.h"
 #include "gstrtputils.h"
 
@@ -51,6 +52,8 @@ GST_STATIC_PAD_TEMPLATE ("sink",
 #define gst_rtp_sv3v_depay_parent_class parent_class
 G_DEFINE_TYPE (GstRtpSV3VDepay, gst_rtp_sv3v_depay,
     GST_TYPE_RTP_BASE_DEPAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpsv3vdepay, "rtpsv3vdepay",
+    GST_RANK_SECONDARY, GST_TYPE_RTP_SV3V_DEPAY, rtp_element_init (plugin));
 
 static void gst_rtp_sv3v_depay_finalize (GObject * object);
 
@@ -310,13 +313,3 @@ gst_rtp_sv3v_depay_change_state (GstElement * element,
   }
   return ret;
 }
-
-gboolean
-gst_rtp_sv3v_depay_plugin_init (GstPlugin * plugin)
-{
-  GST_DEBUG_CATEGORY_INIT (rtpsv3vdepay_debug, "rtpsv3vdepay", 0,
-      "RTP SV3V depayloader");
-
-  return gst_element_register (plugin, "rtpsv3vdepay",
-      GST_RANK_SECONDARY, GST_TYPE_RTP_SV3V_DEPAY);
-}
index 428684a7d7417b6d4c6fd9b6c0edf927588b745a..1f3fc7f9bb68ecc27ddeeb05c9b1e80e7f34e954 100644 (file)
@@ -60,8 +60,6 @@ struct _GstRtpSV3VDepayClass
 
 GType gst_rtp_sv3v_depay_get_type (void);
 
-gboolean gst_rtp_sv3v_depay_plugin_init (GstPlugin * plugin);
-
 G_END_DECLS
 
 #endif /* __GST_RTP_SV3V_DEPAY_H__ */
index c8af974956a8c89a18ee4c9ef5493c960af6155f..e7ff9e18c677ecbd9323591cf8d203096dcc3c0b 100644 (file)
@@ -26,6 +26,7 @@
 #include <gst/video/video.h>
 
 #include <string.h>
+#include "gstrtpelements.h"
 #include "gstrtptheoradepay.h"
 #include "gstrtputils.h"
 
@@ -64,6 +65,8 @@ GST_STATIC_PAD_TEMPLATE ("src",
 #define gst_rtp_theora_depay_parent_class parent_class
 G_DEFINE_TYPE (GstRtpTheoraDepay, gst_rtp_theora_depay,
     GST_TYPE_RTP_BASE_DEPAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtptheoradepay, "rtptheoradepay",
+    GST_RANK_SECONDARY, GST_TYPE_RTP_THEORA_DEPAY, rtp_element_init (plugin));
 
 static gboolean gst_rtp_theora_depay_setcaps (GstRTPBaseDepayload * depayload,
     GstCaps * caps);
@@ -680,13 +683,6 @@ gst_rtp_theora_depay_change_state (GstElement * element,
   return ret;
 }
 
-gboolean
-gst_rtp_theora_depay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtptheoradepay",
-      GST_RANK_SECONDARY, GST_TYPE_RTP_THEORA_DEPAY);
-}
-
 static gboolean
 gst_rtp_theora_depay_packet_lost (GstRTPBaseDepayload * depayload,
     GstEvent * event)
index 2b0b26016e7890339c749d2ccc3d447608ba9840..492d33dc04314749425110f1da813a2ae8c769e7 100644 (file)
@@ -65,8 +65,6 @@ struct _GstRtpTheoraDepayClass
 
 GType gst_rtp_theora_depay_get_type (void);
 
-gboolean gst_rtp_theora_depay_plugin_init (GstPlugin * plugin);
-
 G_END_DECLS
 
 #endif /* __GST_RTP_THEORA_DEPAY_H__ */
index 136ce7d6d2fdb25e6f50292400a5624d3e9c1001..57807570e1c863b2b97ba3f7c0406dcc68a81828 100644 (file)
@@ -26,6 +26,7 @@
 #include <gst/rtp/gstrtpbuffer.h>
 #include <gst/video/video.h>
 
+#include "gstrtpelements.h"
 #include "fnv1hash.h"
 #include "gstrtptheorapay.h"
 #include "gstrtputils.h"
@@ -79,6 +80,8 @@ enum
 
 #define gst_rtp_theora_pay_parent_class parent_class
 G_DEFINE_TYPE (GstRtpTheoraPay, gst_rtp_theora_pay, GST_TYPE_RTP_BASE_PAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtptheorapay, "rtptheorapay",
+    GST_RANK_SECONDARY, GST_TYPE_RTP_THEORA_PAY, rtp_element_init (plugin));
 
 static gboolean gst_rtp_theora_pay_setcaps (GstRTPBasePayload * basepayload,
     GstCaps * caps);
@@ -976,10 +979,3 @@ gst_rtp_theora_pay_get_property (GObject * object, guint prop_id,
       break;
   }
 }
-
-gboolean
-gst_rtp_theora_pay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtptheorapay",
-      GST_RANK_SECONDARY, GST_TYPE_RTP_THEORA_PAY);
-}
index 22bc01df19ffb09f89348d4cfd1b49d9abdd2fc2..d009364fe9f9d4e7c3fa737eb18d07f0ca8eea9c 100644 (file)
@@ -79,8 +79,6 @@ struct _GstRtpTheoraPayClass
 
 GType gst_rtp_theora_pay_get_type (void);
 
-gboolean gst_rtp_theora_pay_plugin_init (GstPlugin * plugin);
-
 G_END_DECLS
 
 #endif /* __GST_RTP_THEORA_PAY_H__ */
index 709309ad16921bda8f8e5a7566b864f32779151a..cfc22294f31ab7d8e4508a2590005e3fa354f283 100644 (file)
@@ -62,6 +62,7 @@
 #include <gst/rtp/gstrtpbuffer.h>
 #include <gst/rtp/gstrtp-enumtypes.h>
 
+#include "gstrtpelements.h"
 #include "rtpulpfeccommon.h"
 #include "gstrtpulpfecdec.h"
 
@@ -95,6 +96,8 @@ GST_DEBUG_CATEGORY (gst_rtp_ulpfec_dec_debug);
 #define GST_CAT_DEFAULT (gst_rtp_ulpfec_dec_debug)
 
 G_DEFINE_TYPE (GstRtpUlpFecDec, gst_rtp_ulpfec_dec, GST_TYPE_ELEMENT);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpulpfecdec, "rtpulpfecdec",
+    GST_RANK_NONE, GST_TYPE_RTP_ULPFEC_DEC, rtp_element_init (plugin));
 
 #define RTP_FEC_MAP_INFO_NTH(dec, data) (&g_array_index (\
     ((GstRtpUlpFecDec *)dec)->info_arr, \
index bd2df23bb34435d50b5e7d0a616802791a84977f..3862f8f8d8cc5df74d8458c0f6df54701e3eaf61 100644 (file)
@@ -88,6 +88,7 @@
 #include <gst/rtp/gstrtpbuffer.h>
 #include <string.h>
 
+#include "gstrtpelements.h"
 #include "rtpulpfeccommon.h"
 #include "gstrtpulpfecenc.h"
 
@@ -114,6 +115,8 @@ GST_DEBUG_CATEGORY (gst_rtp_ulpfec_enc_debug);
 #define GST_CAT_DEFAULT (gst_rtp_ulpfec_enc_debug)
 
 G_DEFINE_TYPE (GstRtpUlpFecEnc, gst_rtp_ulpfec_enc, GST_TYPE_ELEMENT);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpulpfecenc, "rtpulpfecenc",
+    GST_RANK_NONE, GST_TYPE_RTP_ULPFEC_ENC, rtp_element_init (plugin));
 
 enum
 {
index 556bd76c0080821325033c7ccb8cd1fc8ae81153..053e647958d578d84f22926d3d6dc29a496f8248 100644 (file)
@@ -26,6 +26,7 @@
 #include <gst/audio/audio.h>
 
 #include <string.h>
+#include "gstrtpelements.h"
 #include "gstrtpvorbisdepay.h"
 #include "gstrtputils.h"
 
@@ -61,6 +62,8 @@ GST_STATIC_PAD_TEMPLATE ("src",
 #define gst_rtp_vorbis_depay_parent_class parent_class
 G_DEFINE_TYPE (GstRtpVorbisDepay, gst_rtp_vorbis_depay,
     GST_TYPE_RTP_BASE_DEPAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpvorbisdepay, "rtpvorbisdepay",
+    GST_RANK_SECONDARY, GST_TYPE_RTP_VORBIS_DEPAY, rtp_element_init (plugin));
 
 static gboolean gst_rtp_vorbis_depay_setcaps (GstRTPBaseDepayload * depayload,
     GstCaps * caps);
@@ -702,10 +705,3 @@ gst_rtp_vorbis_depay_change_state (GstElement * element,
   }
   return ret;
 }
-
-gboolean
-gst_rtp_vorbis_depay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtpvorbisdepay",
-      GST_RANK_SECONDARY, GST_TYPE_RTP_VORBIS_DEPAY);
-}
index a343d04e159f910e0837a06576970e9e816f0e04..40f8d5f5f14d470f2f4a7bf898e3ad41654a2f25 100644 (file)
@@ -63,8 +63,6 @@ struct _GstRtpVorbisDepayClass
 
 GType gst_rtp_vorbis_depay_get_type (void);
 
-gboolean gst_rtp_vorbis_depay_plugin_init (GstPlugin * plugin);
-
 G_END_DECLS
 
 #endif /* __GST_RTP_VORBIS_DEPAY_H__ */
index 8a3c249c0fb3f430cba896925eb7c4db6fef5ee0..e54e2a7cde1b55d4dafa8a7a330b8bad13c3166a 100644 (file)
@@ -26,6 +26,7 @@
 #include <gst/rtp/gstrtpbuffer.h>
 #include <gst/audio/audio.h>
 
+#include "gstrtpelements.h"
 #include "fnv1hash.h"
 #include "gstrtpvorbispay.h"
 #include "gstrtputils.h"
@@ -70,6 +71,8 @@ enum
 
 #define gst_rtp_vorbis_pay_parent_class parent_class
 G_DEFINE_TYPE (GstRtpVorbisPay, gst_rtp_vorbis_pay, GST_TYPE_RTP_BASE_PAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpvorbispay, "rtpvorbispay",
+    GST_RANK_SECONDARY, GST_TYPE_RTP_VORBIS_PAY, rtp_element_init (plugin));
 
 static gboolean gst_rtp_vorbis_pay_setcaps (GstRTPBasePayload * basepayload,
     GstCaps * caps);
@@ -997,10 +1000,3 @@ gst_rtp_vorbis_pay_get_property (GObject * object, guint prop_id,
       break;
   }
 }
-
-gboolean
-gst_rtp_vorbis_pay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtpvorbispay",
-      GST_RANK_SECONDARY, GST_TYPE_RTP_VORBIS_PAY);
-}
index a5d693a7237092ef56b4393a42cc37d313982f66..e1625efb0bd825c2ca51acd128dacfd92ed073f8 100644 (file)
@@ -78,8 +78,6 @@ struct _GstRtpVorbisPayClass
 
 GType gst_rtp_vorbis_pay_get_type (void);
 
-gboolean gst_rtp_vorbis_pay_plugin_init (GstPlugin * plugin);
-
 G_END_DECLS
 
 #endif /* __GST_RTP_VORBIS_PAY_H__ */
index 6e0e7ddceb0ec32a05563ba2787109252676f02b..bf97d0a7ccd65b39067340db2949741a03a44141 100644 (file)
@@ -22,6 +22,7 @@
 # include "config.h"
 #endif
 
+#include "gstrtpelements.h"
 #include "gstrtpvp8depay.h"
 #include "gstrtputils.h"
 
@@ -47,6 +48,8 @@ static gboolean gst_rtp_vp8_depay_packet_lost (GstRTPBaseDepayload * depay,
     GstEvent * event);
 
 G_DEFINE_TYPE (GstRtpVP8Depay, gst_rtp_vp8_depay, GST_TYPE_RTP_BASE_DEPAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpvp8depay, "rtpvp8depay",
+    GST_RANK_MARGINAL, GST_TYPE_RTP_VP8_DEPAY, rtp_element_init (plugin));
 
 static GstStaticPadTemplate gst_rtp_vp8_depay_src_template =
 GST_STATIC_PAD_TEMPLATE ("src",
@@ -558,10 +561,3 @@ gst_rtp_vp8_depay_packet_lost (GstRTPBaseDepayload * depay, GstEvent * event)
 
   return ret;
 }
-
-gboolean
-gst_rtp_vp8_depay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtpvp8depay",
-      GST_RANK_MARGINAL, GST_TYPE_RTP_VP8_DEPAY);
-}
index 34748ed64716f4ff73e41db86f54272061e9a0ff..76be52adc7be9252ef8f352d531d20deb5b08e3b 100644 (file)
@@ -76,8 +76,6 @@ struct _GstRtpVP8Depay
 
 GType gst_rtp_vp8_depay_get_type (void);
 
-gboolean gst_rtp_vp8_depay_plugin_init (GstPlugin * plugin);
-
 G_END_DECLS
 
 #endif /* #ifndef __GST_RTP_VP8_DEPAY_H__ */
index 717eaea4b1231b7e7cf4954f3cbf4c1282ced461..61bfcd6b2b68405751978c57253ce59a0bd34f44 100644 (file)
@@ -31,6 +31,7 @@
 #include <gst/rtp/gstrtppayloads.h>
 #include <gst/rtp/gstrtpbuffer.h>
 #include <gst/video/video.h>
+#include "gstrtpelements.h"
 #include "dboolhuff.h"
 #include "gstrtpvp8pay.h"
 #include "gstrtputils.h"
@@ -79,6 +80,8 @@ static gboolean gst_rtp_vp8_pay_set_caps (GstRTPBasePayload * payload,
     GstCaps * caps);
 
 G_DEFINE_TYPE (GstRtpVP8Pay, gst_rtp_vp8_pay, GST_TYPE_RTP_BASE_PAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpvp8pay, "rtpvp8pay",
+    GST_RANK_MARGINAL, GST_TYPE_RTP_VP8_PAY, rtp_element_init (plugin));
 
 static GstStaticPadTemplate gst_rtp_vp8_pay_src_template =
 GST_STATIC_PAD_TEMPLATE ("src",
@@ -722,10 +725,3 @@ gst_rtp_vp8_pay_set_caps (GstRTPBasePayload * payload, GstCaps * caps)
 
   return gst_rtp_base_payload_set_outcaps (payload, NULL);
 }
-
-gboolean
-gst_rtp_vp8_pay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtpvp8pay",
-      GST_RANK_MARGINAL, GST_TYPE_RTP_VP8_PAY);
-}
index febec2aa3f0ed4fb6829c3203f5658ddd8b73ab4..30ad99a67c93c310790559242d96925d4621d49e 100644 (file)
@@ -70,8 +70,6 @@ struct _GstRtpVP8Pay
 
 GType gst_rtp_vp8_pay_get_type (void);
 
-gboolean gst_rtp_vp8_pay_plugin_init (GstPlugin * plugin);
-
 G_END_DECLS
 
 #endif /* #ifndef __GST_RTP_VP8_PAY_H__ */
index d943289be806eb8889f927ab18a00e66affac81f..ec271cf9ff2192ca83d187236984fe4f2d2ec5df 100644 (file)
@@ -23,6 +23,7 @@
 # include "config.h"
 #endif
 
+#include "gstrtpelements.h"
 #include "gstrtpvp9depay.h"
 #include "gstrtputils.h"
 
@@ -44,6 +45,8 @@ static gboolean gst_rtp_vp9_depay_packet_lost (GstRTPBaseDepayload * depay,
     GstEvent * event);
 
 G_DEFINE_TYPE (GstRtpVP9Depay, gst_rtp_vp9_depay, GST_TYPE_RTP_BASE_DEPAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpvp9depay, "rtpvp9depay",
+    GST_RANK_MARGINAL, GST_TYPE_RTP_VP9_DEPAY, rtp_element_init (plugin));
 
 static GstStaticPadTemplate gst_rtp_vp9_depay_src_template =
 GST_STATIC_PAD_TEMPLATE ("src",
@@ -523,10 +526,3 @@ gst_rtp_vp9_depay_packet_lost (GstRTPBaseDepayload * depay, GstEvent * event)
       GST_RTP_BASE_DEPAYLOAD_CLASS
       (gst_rtp_vp9_depay_parent_class)->packet_lost (depay, event);
 }
-
-gboolean
-gst_rtp_vp9_depay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtpvp9depay",
-      GST_RANK_MARGINAL, GST_TYPE_RTP_VP9_DEPAY);
-}
index 2a95230edd6a76f2e0a9f81aa82e0de30629323b..96007bf91911353b5b0363004cf63727c187832d 100644 (file)
@@ -74,8 +74,6 @@ struct _GstRtpVP9Depay
 
 GType gst_rtp_vp9_depay_get_type (void);
 
-gboolean gst_rtp_vp9_depay_plugin_init (GstPlugin * plugin);
-
 G_END_DECLS
 
 #endif /* #ifndef __GST_RTP_VP9_DEPAY_H__ */
index 6ec4251503f3c97b6eb1ddf318e930647c48d2d4..447a429f167dc9c98f18a5b63c9ed7b1f9945aa4 100644 (file)
@@ -32,6 +32,7 @@
 #include <gst/rtp/gstrtppayloads.h>
 #include <gst/rtp/gstrtpbuffer.h>
 #include <gst/video/video.h>
+#include "gstrtpelements.h"
 #include "dboolhuff.h"
 #include "gstrtpvp9pay.h"
 #include "gstrtputils.h"
@@ -78,6 +79,8 @@ static gboolean gst_rtp_vp9_pay_set_caps (GstRTPBasePayload * payload,
     GstCaps * caps);
 
 G_DEFINE_TYPE (GstRtpVP9Pay, gst_rtp_vp9_pay, GST_TYPE_RTP_BASE_PAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpvp9pay, "rtpvp9pay",
+    GST_RANK_MARGINAL, GST_TYPE_RTP_VP9_PAY, rtp_element_init (plugin));
 
 static GstStaticPadTemplate gst_rtp_vp9_pay_src_template =
 GST_STATIC_PAD_TEMPLATE ("src",
@@ -558,10 +561,3 @@ gst_rtp_vp9_pay_set_caps (GstRTPBasePayload * payload, GstCaps * caps)
 
   return gst_rtp_base_payload_set_outcaps (payload, NULL);
 }
-
-gboolean
-gst_rtp_vp9_pay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtpvp9pay",
-      GST_RANK_MARGINAL, GST_TYPE_RTP_VP9_PAY);
-}
index fc2aa8efd523d923d8620d4ef96c081625cdce52..407e3e08c459782979896cb54f85d89805ce7ef2 100644 (file)
@@ -65,8 +65,6 @@ struct _GstRtpVP9Pay
 
 GType gst_rtp_vp9_pay_get_type (void);
 
-gboolean gst_rtp_vp9_pay_plugin_init (GstPlugin * plugin);
-
 G_END_DECLS
 
 #endif /* #ifndef __GST_RTP_VP9_PAY_H__ */
index d679f68794a0a286f17ef272bcbf9aa7dc2b5cd7..d3bb5af05ed7a3535d4eb36e9ada11e49cfd3b26 100644 (file)
@@ -26,6 +26,7 @@
 
 #include <string.h>
 #include <stdlib.h>
+#include "gstrtpelements.h"
 #include "gstrtpvrawdepay.h"
 #include "gstrtputils.h"
 
@@ -60,6 +61,8 @@ GST_STATIC_PAD_TEMPLATE ("sink",
 #define gst_rtp_vraw_depay_parent_class parent_class
 G_DEFINE_TYPE (GstRtpVRawDepay, gst_rtp_vraw_depay,
     GST_TYPE_RTP_BASE_DEPAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpvrawdepay, "rtpvrawdepay",
+    GST_RANK_SECONDARY, GST_TYPE_RTP_VRAW_DEPAY, rtp_element_init (plugin));
 
 static gboolean gst_rtp_vraw_depay_setcaps (GstRTPBaseDepayload * depayload,
     GstCaps * caps);
@@ -658,10 +661,3 @@ gst_rtp_vraw_depay_change_state (GstElement * element,
   }
   return ret;
 }
-
-gboolean
-gst_rtp_vraw_depay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtpvrawdepay",
-      GST_RANK_SECONDARY, GST_TYPE_RTP_VRAW_DEPAY);
-}
index 18ca755d386eec3a2ca8fe6a38c4b2f7d5f259d3..736da758358d089c30aaa17c1f6c45cc9ff717f9 100644 (file)
@@ -64,8 +64,6 @@ struct _GstRtpVRawDepayClass
 
 GType gst_rtp_vraw_depay_get_type (void);
 
-gboolean gst_rtp_vraw_depay_plugin_init (GstPlugin * plugin);
-
 G_END_DECLS
 
 #endif /* __GST_RTP_VRAW_DEPAY_H__ */
index 305907187b961b587ce4159630e9146c64bf92d1..1b19cdba1c605ed7674dd727293ec7f8412cd076 100644 (file)
@@ -26,6 +26,7 @@
 #include <gst/rtp/gstrtpbuffer.h>
 #include <gst/video/video.h>
 
+#include "gstrtpelements.h"
 #include "gstrtpvrawpay.h"
 #include "gstrtputils.h"
 
@@ -85,6 +86,8 @@ static void gst_rtp_vraw_pay_set_property (GObject * object, guint prop_id,
     const GValue * value, GParamSpec * pspec);
 
 G_DEFINE_TYPE (GstRtpVRawPay, gst_rtp_vraw_pay, GST_TYPE_RTP_BASE_PAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpvrawpay, "rtpvrawpay",
+    GST_RANK_SECONDARY, GST_TYPE_RTP_VRAW_PAY, rtp_element_init (plugin));
 
 static void
 gst_rtp_vraw_pay_class_init (GstRtpVRawPayClass * klass)
@@ -656,10 +659,3 @@ gst_rtp_vraw_pay_get_property (GObject * object, guint prop_id,
       break;
   }
 }
-
-gboolean
-gst_rtp_vraw_pay_plugin_init (GstPlugin * plugin)
-{
-  return gst_element_register (plugin, "rtpvrawpay",
-      GST_RANK_SECONDARY, GST_TYPE_RTP_VRAW_PAY);
-}
index 3fd2442d65d1c86c1a230e80b33cc04e75067a5b..008cbee93c68c621b62af555cc9caae42a8b05d5 100644 (file)
@@ -60,8 +60,6 @@ struct _GstRtpVRawPayClass
 
 GType gst_rtp_vraw_pay_get_type (void);
 
-gboolean gst_rtp_vraw_pay_plugin_init (GstPlugin * plugin);
-
 G_END_DECLS
 
 #endif /* __GST_RTP_VRAW_PAY_H__ */
index 1d8c4b9d5e1c3ded9b91af4fc0b46d85e1b4dd72..0ad14654ef9e7e12f0bafa51036d1c6d9a9e5b81 100644 (file)
@@ -2,6 +2,7 @@ rtp_sources = [
   'dboolhuff.c',
   'fnv1hash.c',
   'gstbuffermemory.c',
+  'gstrtpelement.c',
   'gstrtp.c',
   'gstrtpchannels.c',
   'gstrtpac3depay.c',
index 0160f094826efeca8b8878b6360fcde569f6a815..b974865527f251080269bb08230ec8fff2c883d4 100644 (file)
@@ -84,6 +84,8 @@ good_tests = [
   [ 'elements/rtprtx' ],
   [ 'elements/rtpsession' ],
   [ 'elements/rtpstorage', false, [],  ['../../gst/rtp/gstrtpstorage.c',
+                                       '../../gst/rtp/gstrtpelement.c',
+                                       '../../gst/rtp/gstrtputils.c',
                                        '../../gst/rtp/rtpstorage.c',
                                        '../../gst/rtp/rtpstoragestream.c']],
   [ 'elements/rtpred' ],