"clock-rate = (int) 90000, " "encoding-name = (string) \"H263-1998\"")
);
-static void gst_asteriskh263_class_init (GstAsteriskh263Class * klass);
-static void gst_asteriskh263_base_init (GstAsteriskh263Class * klass);
-static void gst_asteriskh263_init (GstAsteriskh263 * asteriskh263);
static void gst_asteriskh263_finalize (GObject * object);
static GstFlowReturn gst_asteriskh263_chain (GstPad * pad, GstBuffer * buffer);
static GstStateChangeReturn gst_asteriskh263_change_state (GstElement *
element, GstStateChange transition);
-static GstElementClass *parent_class = NULL;
-
-static GType
-gst_asteriskh263_get_type (void)
-{
- static GType asteriskh263_type = 0;
-
- if (!asteriskh263_type) {
- static const GTypeInfo asteriskh263_info = {
- sizeof (GstAsteriskh263Class),
- (GBaseInitFunc) gst_asteriskh263_base_init,
- NULL,
- (GClassInitFunc) gst_asteriskh263_class_init,
- NULL,
- NULL,
- sizeof (GstAsteriskh263),
- 0,
- (GInstanceInitFunc) gst_asteriskh263_init,
- };
-
- asteriskh263_type =
- g_type_register_static (GST_TYPE_ELEMENT, "GstAsteriskh263",
- &asteriskh263_info, 0);
- }
- return asteriskh263_type;
-}
+GST_BOILERPLATE (GstAsteriskh263, gst_asteriskh263, GstElement,
+ GST_TYPE_ELEMENT);
static void
-gst_asteriskh263_base_init (GstAsteriskh263Class * klass)
+gst_asteriskh263_base_init (gpointer klass)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
gobject_class = (GObjectClass *) klass;
gstelement_class = (GstElementClass *) klass;
- parent_class = g_type_class_peek_parent (klass);
-
gobject_class->finalize = gst_asteriskh263_finalize;
gstelement_class->change_state = gst_asteriskh263_change_state;
}
static void
-gst_asteriskh263_init (GstAsteriskh263 * asteriskh263)
+gst_asteriskh263_init (GstAsteriskh263 * asteriskh263,
+ GstAsteriskh263Class * klass)
{
asteriskh263->srcpad =
gst_pad_new_from_static_template (&gst_asteriskh263_src_template, "src");
gstbasertpdepayload_class = (GstBaseRTPDepayloadClass *) klass;
- parent_class = g_type_class_peek_parent (klass);
-
gstbasertpdepayload_class->set_caps = gst_rtp_L16_depay_setcaps;
gstbasertpdepayload_class->process = gst_rtp_L16_depay_process;
gstbasertpdepayload_class = (GstBaseRTPDepayloadClass *) klass;
- parent_class = g_type_class_peek_parent (klass);
-
gstbasertpdepayload_class->set_caps = gst_rtp_ac3_depay_setcaps;
gstbasertpdepayload_class->process = gst_rtp_ac3_depay_process;
gstbasertpdepayload_class = (GstBaseRTPDepayloadClass *) klass;
- parent_class = g_type_class_peek_parent (klass);
-
gstbasertpdepayload_class->process = gst_rtp_amr_depay_process;
gstbasertpdepayload_class->set_caps = gst_rtp_amr_depay_setcaps;
gstbasertppayload_class = (GstBaseRTPPayloadClass *) klass;
- parent_class = g_type_class_peek_parent (klass);
-
gstbasertppayload_class->set_caps = gst_rtp_amr_pay_setcaps;
gstbasertppayload_class->handle_buffer = gst_rtp_amr_pay_handle_buffer;
gstbasertppayload_class = (GstBaseRTPPayloadClass *) klass;
- parent_class = g_type_class_ref (GST_TYPE_BASE_RTP_PAYLOAD);
-
gstbasertppayload_class->set_caps = gst_rtpbvpay_sink_setcaps;
gstbasertppayload_class->get_caps = gst_rtpbvpay_sink_getcaps;
GST_STATIC_CAPS ("application/x-rtcp")
);
-static void gst_rtp_depay_class_init (GstRTPDepayClass * klass);
-static void gst_rtp_depay_init (GstRTPDepay * rtpdepay);
-
static GstCaps *gst_rtp_depay_getcaps (GstPad * pad);
static GstFlowReturn gst_rtp_depay_chain_rtp (GstPad * pad, GstBuffer * buffer);
static GstFlowReturn gst_rtp_depay_chain_rtcp (GstPad * pad,
GstBuffer * buffer);
-static GstElementClass *parent_class = NULL;
-
-/*static guint gst_rtp_depay_signals[LAST_SIGNAL] = { 0 };*/
-
-GType
-gst_rtp_depay_get_type (void)
-{
- static GType rtpdepay_type = 0;
-
- if (!rtpdepay_type) {
- static const GTypeInfo rtpdepay_info = {
- sizeof (GstRTPDepayClass), NULL,
- NULL,
- (GClassInitFunc) gst_rtp_depay_class_init,
- NULL,
- NULL,
- sizeof (GstRTPDepay),
- 0,
- (GInstanceInitFunc) gst_rtp_depay_init,
- };
-
- rtpdepay_type =
- g_type_register_static (GST_TYPE_ELEMENT, "GstRTPDepay", &rtpdepay_info,
- 0);
- }
- return rtpdepay_type;
-}
+GST_BOILERPLATE (GstRTPDepay, gst_rtp_depay, GstElement, GST_TYPE_ELEMENT);
static void
-gst_rtp_depay_class_init (GstRTPDepayClass * klass)
+gst_rtp_depay_base_init (gpointer klass)
{
GstElementClass *gstelement_class = GST_ELEMENT_CLASS (klass);
gst_element_class_add_pad_template (gstelement_class,
gst_static_pad_template_get (&gst_rtp_depay_sink_rtcp_template));
gst_element_class_set_details (gstelement_class, &rtpdepay_details);
+}
- parent_class = g_type_class_peek_parent (klass);
-
+static void
+gst_rtp_depay_class_init (GstRTPDepayClass * klass)
+{
GST_DEBUG_CATEGORY_INIT (rtpdepay_debug, "rtpdepay", 0, "RTP decoder");
}
static void
-gst_rtp_depay_init (GstRTPDepay * rtpdepay)
+gst_rtp_depay_init (GstRTPDepay * rtpdepay, GstRTPDepayClass * klass)
{
/* the input rtp pad */
rtpdepay->sink_rtp =
gstbasertpdepayload_class = (GstBaseRTPDepayloadClass *) klass;
- parent_class = g_type_class_peek_parent (klass);
-
gstbasertpdepayload_class->process = gst_rtp_g729_depay_process;
gstbasertpdepayload_class->set_caps = gst_rtp_g729_depay_setcaps;
}
gstbasertp_depayload_class = (GstBaseRTPDepayloadClass *) klass;
- parent_class = g_type_class_peek_parent (klass);
-
gstbasertp_depayload_class->process = gst_rtp_gsm_depay_process;
gstbasertp_depayload_class->set_caps = gst_rtp_gsm_depay_setcaps;
gstbasertppayload_class = (GstBaseRTPPayloadClass *) klass;
- parent_class = g_type_class_peek_parent (klass);
-
gstbasertppayload_class->set_caps = gst_rtp_gsm_pay_setcaps;
gstbasertppayload_class->handle_buffer = gst_rtp_gsm_pay_handle_buffer;
gstelement_class = (GstElementClass *) klass;
gstbasertpdepayload_class = (GstBaseRTPDepayloadClass *) klass;
- parent_class = g_type_class_peek_parent (klass);
-
gstbasertpdepayload_class->process = gst_rtp_h263_depay_process;
gstbasertpdepayload_class->set_caps = gst_rtp_h263_depay_setcaps;
"clock-rate = (int) 90000, " "encoding-name = (string) \"H263\"")
);
-static void gst_rtp_h263_pay_class_init (GstRtpH263PayClass * klass);
-static void gst_rtp_h263_pay_base_init (GstRtpH263PayClass * klass);
-static void gst_rtp_h263_pay_init (GstRtpH263Pay * rtph263pay);
static void gst_rtp_h263_pay_finalize (GObject * object);
static gboolean gst_rtp_h263_pay_setcaps (GstBaseRTPPayload * payload,
guint ind);
static void gst_rtp_h263_pay_package_destroy (GstRtpH263PayPackage * pack);
-static GstBaseRTPPayloadClass *parent_class = NULL;
+GST_BOILERPLATE (GstRtpH263Pay, gst_rtp_h263_pay, GstBaseRTPPayload,
+ GST_TYPE_BASE_RTP_PAYLOAD)
-static GType
-gst_rtp_h263_pay_get_type (void)
-{
- static GType rtph263pay_type = 0;
-
- if (!rtph263pay_type) {
- static const GTypeInfo rtph263pay_info = {
- sizeof (GstRtpH263PayClass),
- (GBaseInitFunc) gst_rtp_h263_pay_base_init,
- NULL,
- (GClassInitFunc) gst_rtp_h263_pay_class_init,
- NULL,
- NULL,
- sizeof (GstRtpH263Pay),
- 0,
- (GInstanceInitFunc) gst_rtp_h263_pay_init,
- };
-
- rtph263pay_type =
- g_type_register_static (GST_TYPE_BASE_RTP_PAYLOAD, "GstRtpH263Pay",
- &rtph263pay_info, 0);
- }
- return rtph263pay_type;
-}
-
-static void
-gst_rtp_h263_pay_base_init (GstRtpH263PayClass * klass)
+ static void gst_rtp_h263_pay_base_init (gpointer klass)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
gobject_class = (GObjectClass *) klass;
gstbasertppayload_class = (GstBaseRTPPayloadClass *) klass;
- parent_class = g_type_class_peek_parent (klass);
-
gobject_class->finalize = gst_rtp_h263_pay_finalize;
gstbasertppayload_class->set_caps = gst_rtp_h263_pay_setcaps;
}
static void
-gst_rtp_h263_pay_init (GstRtpH263Pay * rtph263pay)
+gst_rtp_h263_pay_init (GstRtpH263Pay * rtph263pay, GstRtpH263PayClass * klass)
{
rtph263pay->adapter = gst_adapter_new ();
} else {
if (n > rest_bits) {
context->window =
- (context->
- window << rest_bits) | (*context->win_end & (((guint) pow (2.0,
- (double) rest_bits)) - 1));
+ (context->window << rest_bits) | (*context->
+ win_end & (((guint) pow (2.0, (double) rest_bits)) - 1));
n -= rest_bits;
rest_bits = 0;
} else {
gst_rtp_h263_pay_boundry_init (&bound, NULL, rtph263pay->data - 1, 0, 0);
context->gobs =
- (GstRtpH263PayGob **) g_malloc0 (format_props[context->
- piclayer->ptype_srcformat][0] * sizeof (GstRtpH263PayGob *));
+ (GstRtpH263PayGob **) g_malloc0 (format_props[context->piclayer->
+ ptype_srcformat][0] * sizeof (GstRtpH263PayGob *));
for (i = 0; i < format_props[context->piclayer->ptype_srcformat][0]; i++) {
gstelement_class = (GstElementClass *) klass;
gstbasertpdepayload_class = (GstBaseRTPDepayloadClass *) klass;
- parent_class = g_type_class_peek_parent (klass);
-
gstbasertpdepayload_class->process = gst_rtp_h263p_depay_process;
gstbasertpdepayload_class->set_caps = gst_rtp_h263p_depay_setcaps;
"clock-rate = (int) 90000, " "encoding-name = (string) \"H263-2000\"")
);
-static void gst_rtp_h263p_pay_class_init (GstRtpH263PPayClass * klass);
-static void gst_rtp_h263p_pay_base_init (GstRtpH263PPayClass * klass);
-static void gst_rtp_h263p_pay_init (GstRtpH263PPay * rtph263ppay);
static void gst_rtp_h263p_pay_finalize (GObject * object);
static void gst_rtp_h263p_pay_set_property (GObject * object, guint prop_id,
static GstFlowReturn gst_rtp_h263p_pay_handle_buffer (GstBaseRTPPayload *
payload, GstBuffer * buffer);
-static GstBaseRTPPayloadClass *parent_class = NULL;
-
-static GType
-gst_rtp_h263p_pay_get_type (void)
-{
- static GType rtph263ppay_type = 0;
-
- if (!rtph263ppay_type) {
- static const GTypeInfo rtph263ppay_info = {
- sizeof (GstRtpH263PPayClass),
- (GBaseInitFunc) gst_rtp_h263p_pay_base_init,
- NULL,
- (GClassInitFunc) gst_rtp_h263p_pay_class_init,
- NULL,
- NULL,
- sizeof (GstRtpH263PPay),
- 0,
- (GInstanceInitFunc) gst_rtp_h263p_pay_init,
- };
-
- rtph263ppay_type =
- g_type_register_static (GST_TYPE_BASE_RTP_PAYLOAD, "GstRtpH263PPay",
- &rtph263ppay_info, 0);
- }
- return rtph263ppay_type;
-}
+GST_BOILERPLATE (GstRtpH263PPay, gst_rtp_h263p_pay, GstBaseRTPPayload,
+ GST_TYPE_BASE_RTP_PAYLOAD);
static void
-gst_rtp_h263p_pay_base_init (GstRtpH263PPayClass * klass)
+gst_rtp_h263p_pay_base_init (gpointer klass)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
gobject_class = (GObjectClass *) klass;
gstbasertppayload_class = (GstBaseRTPPayloadClass *) klass;
- parent_class = g_type_class_peek_parent (klass);
-
gobject_class->finalize = gst_rtp_h263p_pay_finalize;
gobject_class->set_property = gst_rtp_h263p_pay_set_property;
gobject_class->get_property = gst_rtp_h263p_pay_get_property;
}
static void
-gst_rtp_h263p_pay_init (GstRtpH263PPay * rtph263ppay)
+gst_rtp_h263p_pay_init (GstRtpH263PPay * rtph263ppay,
+ GstRtpH263PPayClass * klass)
{
rtph263ppay->adapter = gst_adapter_new ();
gstbasertppayload_class = (GstBaseRTPPayloadClass *) klass;
- parent_class = g_type_class_ref (GST_TYPE_BASE_RTP_PAYLOAD);
-
gstbasertppayload_class->set_caps = gst_rtpilbcpay_sink_setcaps;
gstbasertppayload_class->get_caps = gst_rtpilbcpay_sink_getcaps;
gobject_class->finalize = gst_rtp_jpeg_depay_finalize;
- parent_class = g_type_class_peek_parent (klass);
-
gstbasertpdepayload_class->set_caps = gst_rtp_jpeg_depay_setcaps;
gstbasertpdepayload_class->process = gst_rtp_jpeg_depay_process;
gstbasertpdepayload_class = (GstBaseRTPDepayloadClass *) klass;
- parent_class = g_type_class_peek_parent (klass);
-
gstbasertpdepayload_class->process = gst_rtp_mp1s_depay_process;
gstbasertpdepayload_class->set_caps = gst_rtp_mp1s_depay_setcaps;
-
}
static void
gstbasertpdepayload_class = (GstBaseRTPDepayloadClass *) klass;
- parent_class = g_type_class_peek_parent (klass);
-
gstbasertpdepayload_class->process = gst_rtp_mp2t_depay_process;
gstbasertpdepayload_class->set_caps = gst_rtp_mp2t_depay_setcaps;
)
);
-
-static void gst_rtp_mp4a_pay_class_init (GstRtpMP4APayClass * klass);
-static void gst_rtp_mp4a_pay_base_init (GstRtpMP4APayClass * klass);
-static void gst_rtp_mp4a_pay_init (GstRtpMP4APay * rtpmp4apay);
static void gst_rtp_mp4a_pay_finalize (GObject * object);
static gboolean gst_rtp_mp4a_pay_setcaps (GstBaseRTPPayload * payload,
static GstFlowReturn gst_rtp_mp4a_pay_handle_buffer (GstBaseRTPPayload *
payload, GstBuffer * buffer);
-static GstBaseRTPPayloadClass *parent_class = NULL;
+GST_BOILERPLATE (GstRtpMP4APay, gst_rtp_mp4a_pay, GstBaseRTPPayload,
+ GST_TYPE_BASE_RTP_PAYLOAD)
-static GType
-gst_rtp_mp4a_pay_get_type (void)
-{
- static GType rtpmp4apay_type = 0;
-
- if (!rtpmp4apay_type) {
- static const GTypeInfo rtpmp4apay_info = {
- sizeof (GstRtpMP4APayClass),
- (GBaseInitFunc) gst_rtp_mp4a_pay_base_init,
- NULL,
- (GClassInitFunc) gst_rtp_mp4a_pay_class_init,
- NULL,
- NULL,
- sizeof (GstRtpMP4APay),
- 0,
- (GInstanceInitFunc) gst_rtp_mp4a_pay_init,
- };
-
- rtpmp4apay_type =
- g_type_register_static (GST_TYPE_BASE_RTP_PAYLOAD, "GstRtpMP4APay",
- &rtpmp4apay_info, 0);
- }
- return rtpmp4apay_type;
-}
-
-static void
-gst_rtp_mp4a_pay_base_init (GstRtpMP4APayClass * klass)
+ static void gst_rtp_mp4a_pay_base_init (gpointer klass)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
gobject_class = (GObjectClass *) klass;
gstbasertppayload_class = (GstBaseRTPPayloadClass *) klass;
- parent_class = g_type_class_peek_parent (klass);
-
gobject_class->finalize = gst_rtp_mp4a_pay_finalize;
gstbasertppayload_class->set_caps = gst_rtp_mp4a_pay_setcaps;
}
static void
-gst_rtp_mp4a_pay_init (GstRtpMP4APay * rtpmp4apay)
+gst_rtp_mp4a_pay_init (GstRtpMP4APay * rtpmp4apay, GstRtpMP4APayClass * klass)
{
rtpmp4apay->rate = 90000;
rtpmp4apay->profile = g_strdup ("1");
gstelement_class = (GstElementClass *) klass;
gstbasertpdepayload_class = (GstBaseRTPDepayloadClass *) klass;
- parent_class = g_type_class_peek_parent (klass);
-
gobject_class->finalize = gst_rtp_mp4g_depay_finalize;
gstelement_class->change_state = gst_rtp_mp4g_depay_change_state;
);
-static void gst_rtp_mp4g_pay_class_init (GstRtpMP4GPayClass * klass);
-static void gst_rtp_mp4g_pay_base_init (GstRtpMP4GPayClass * klass);
-static void gst_rtp_mp4g_pay_init (GstRtpMP4GPay * rtpmp4gpay);
static void gst_rtp_mp4g_pay_finalize (GObject * object);
static gboolean gst_rtp_mp4g_pay_setcaps (GstBaseRTPPayload * payload,
static GstFlowReturn gst_rtp_mp4g_pay_handle_buffer (GstBaseRTPPayload *
payload, GstBuffer * buffer);
-static GstBaseRTPPayloadClass *parent_class = NULL;
+GST_BOILERPLATE (GstRtpMP4GPay, gst_rtp_mp4g_pay, GstBaseRTPPayload,
+ GST_TYPE_BASE_RTP_PAYLOAD)
-static GType
-gst_rtp_mp4g_pay_get_type (void)
-{
- static GType rtpmp4gpay_type = 0;
-
- if (!rtpmp4gpay_type) {
- static const GTypeInfo rtpmp4gpay_info = {
- sizeof (GstRtpMP4GPayClass),
- (GBaseInitFunc) gst_rtp_mp4g_pay_base_init,
- NULL,
- (GClassInitFunc) gst_rtp_mp4g_pay_class_init,
- NULL,
- NULL,
- sizeof (GstRtpMP4GPay),
- 0,
- (GInstanceInitFunc) gst_rtp_mp4g_pay_init,
- };
-
- rtpmp4gpay_type =
- g_type_register_static (GST_TYPE_BASE_RTP_PAYLOAD, "GstRtpMP4GPay",
- &rtpmp4gpay_info, 0);
- }
- return rtpmp4gpay_type;
-}
-
-static void
-gst_rtp_mp4g_pay_base_init (GstRtpMP4GPayClass * klass)
+ static void gst_rtp_mp4g_pay_base_init (gpointer klass)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
gobject_class = (GObjectClass *) klass;
gstbasertppayload_class = (GstBaseRTPPayloadClass *) klass;
- parent_class = g_type_class_peek_parent (klass);
-
gobject_class->finalize = gst_rtp_mp4g_pay_finalize;
gstbasertppayload_class->set_caps = gst_rtp_mp4g_pay_setcaps;
}
static void
-gst_rtp_mp4g_pay_init (GstRtpMP4GPay * rtpmp4gpay)
+gst_rtp_mp4g_pay_init (GstRtpMP4GPay * rtpmp4gpay, GstRtpMP4GPayClass * klass)
{
rtpmp4gpay->adapter = gst_adapter_new ();
rtpmp4gpay->rate = 90000;
};
-static void gst_rtp_mp4v_pay_class_init (GstRtpMP4VPayClass * klass);
-static void gst_rtp_mp4v_pay_base_init (GstRtpMP4VPayClass * klass);
-static void gst_rtp_mp4v_pay_init (GstRtpMP4VPay * rtpmp4vpay);
static void gst_rtp_mp4v_pay_finalize (GObject * object);
static void gst_rtp_mp4v_pay_set_property (GObject * object, guint prop_id,
payload, GstBuffer * buffer);
static gboolean gst_rtp_mp4v_pay_event (GstPad * pad, GstEvent * event);
-static GstBaseRTPPayloadClass *parent_class = NULL;
+GST_BOILERPLATE (GstRtpMP4VPay, gst_rtp_mp4v_pay, GstBaseRTPPayload,
+ GST_TYPE_BASE_RTP_PAYLOAD)
-static GType
-gst_rtp_mp4v_pay_get_type (void)
-{
- static GType rtpmp4vpay_type = 0;
-
- if (!rtpmp4vpay_type) {
- static const GTypeInfo rtpmp4vpay_info = {
- sizeof (GstRtpMP4VPayClass),
- (GBaseInitFunc) gst_rtp_mp4v_pay_base_init,
- NULL,
- (GClassInitFunc) gst_rtp_mp4v_pay_class_init,
- NULL,
- NULL,
- sizeof (GstRtpMP4VPay),
- 0,
- (GInstanceInitFunc) gst_rtp_mp4v_pay_init,
- };
-
- rtpmp4vpay_type =
- g_type_register_static (GST_TYPE_BASE_RTP_PAYLOAD, "GstRtpMP4VPay",
- &rtpmp4vpay_info, 0);
- }
- return rtpmp4vpay_type;
-}
-
-static void
-gst_rtp_mp4v_pay_base_init (GstRtpMP4VPayClass * klass)
+ static void gst_rtp_mp4v_pay_base_init (gpointer klass)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
gobject_class = (GObjectClass *) klass;
gstbasertppayload_class = (GstBaseRTPPayloadClass *) klass;
- parent_class = g_type_class_peek_parent (klass);
-
gobject_class->set_property = gst_rtp_mp4v_pay_set_property;
gobject_class->get_property = gst_rtp_mp4v_pay_get_property;
GST_DEBUG_CATEGORY_INIT (rtpmp4vpay_debug, "rtpmp4vpay", 0,
"MP4 video RTP Payloader");
-
}
static void
-gst_rtp_mp4v_pay_init (GstRtpMP4VPay * rtpmp4vpay)
+gst_rtp_mp4v_pay_init (GstRtpMP4VPay * rtpmp4vpay, GstRtpMP4VPayClass * klass)
{
GstPad *sinkpad;
gstbasertpdepayload_class = (GstBaseRTPDepayloadClass *) klass;
- parent_class = g_type_class_peek_parent (klass);
-
gstbasertpdepayload_class->set_caps = gst_rtp_mpa_depay_setcaps;
gstbasertpdepayload_class->process = gst_rtp_mpa_depay_process;
"clock-rate = (int) 90000, " "encoding-name = (string) \"MPA\"")
);
-static void gst_rtp_mpa_pay_class_init (GstRtpMPAPayClass * klass);
-static void gst_rtp_mpa_pay_base_init (GstRtpMPAPayClass * klass);
-static void gst_rtp_mpa_pay_init (GstRtpMPAPay * rtpmpapay);
static void gst_rtp_mpa_pay_finalize (GObject * object);
static gboolean gst_rtp_mpa_pay_setcaps (GstBaseRTPPayload * payload,
static GstFlowReturn gst_rtp_mpa_pay_handle_buffer (GstBaseRTPPayload * payload,
GstBuffer * buffer);
-static GstBaseRTPPayloadClass *parent_class = NULL;
+GST_BOILERPLATE (GstRtpMPAPay, gst_rtp_mpa_pay, GstBaseRTPPayload,
+ GST_TYPE_BASE_RTP_PAYLOAD)
-static GType
-gst_rtp_mpa_pay_get_type (void)
-{
- static GType rtpmpapay_type = 0;
-
- if (!rtpmpapay_type) {
- static const GTypeInfo rtpmpapay_info = {
- sizeof (GstRtpMPAPayClass),
- (GBaseInitFunc) gst_rtp_mpa_pay_base_init,
- NULL,
- (GClassInitFunc) gst_rtp_mpa_pay_class_init,
- NULL,
- NULL,
- sizeof (GstRtpMPAPay),
- 0,
- (GInstanceInitFunc) gst_rtp_mpa_pay_init,
- };
-
- rtpmpapay_type =
- g_type_register_static (GST_TYPE_BASE_RTP_PAYLOAD, "GstRtpMPAPay",
- &rtpmpapay_info, 0);
- }
- return rtpmpapay_type;
-}
-
-static void
-gst_rtp_mpa_pay_base_init (GstRtpMPAPayClass * klass)
+ static void gst_rtp_mpa_pay_base_init (gpointer klass)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
gobject_class = (GObjectClass *) klass;
gstbasertppayload_class = (GstBaseRTPPayloadClass *) klass;
- parent_class = g_type_class_peek_parent (klass);
-
gobject_class->finalize = gst_rtp_mpa_pay_finalize;
gstbasertppayload_class->set_caps = gst_rtp_mpa_pay_setcaps;
}
static void
-gst_rtp_mpa_pay_init (GstRtpMPAPay * rtpmpapay)
+gst_rtp_mpa_pay_init (GstRtpMPAPay * rtpmpapay, GstRtpMPAPayClass * klass)
{
rtpmpapay->adapter = gst_adapter_new ();
}
gstbasertpdepayload_class = (GstBaseRTPDepayloadClass *) klass;
- parent_class = g_type_class_peek_parent (klass);
-
gstbasertpdepayload_class->set_caps = gst_rtp_mpv_depay_setcaps;
gstbasertpdepayload_class->process = gst_rtp_mpv_depay_process;
gstbasertpdepayload_class = (GstBaseRTPDepayloadClass *) klass;
- parent_class = g_type_class_peek_parent (klass);
-
gstbasertpdepayload_class->process = gst_rtp_pcma_depay_process;
gstbasertpdepayload_class->set_caps = gst_rtp_pcma_depay_setcaps;
}
gstbasertpdepayload_class = (GstBaseRTPDepayloadClass *) klass;
- parent_class = g_type_class_peek_parent (klass);
-
gstbasertpdepayload_class->process = gst_rtp_pcmu_depay_process;
gstbasertpdepayload_class->set_caps = gst_rtp_pcmu_depay_setcaps;
}
gstbasertppayload_class = (GstBaseRTPPayloadClass *) klass;
- parent_class = g_type_class_peek_parent (klass);
-
gstbasertppayload_class->set_caps = gst_rtp_pcmu_pay_setcaps;
}
0x51, 0x44, 0x4d, 0x32, 0x0, 0x0, 0x0, 0x24,
0x51, 0x44, 0x43, 0x41
};
+
static void gst_rtp_qdm2_depay_finalize (GObject * object);
static GstStateChangeReturn gst_rtp_qdm2_depay_change_state (GstElement *
gstelement_class = (GstElementClass *) klass;
gstbasertpdepayload_class = (GstBaseRTPDepayloadClass *) klass;
- parent_class = g_type_class_peek_parent (klass);
-
gstbasertpdepayload_class->process = gst_rtp_qdm2_depay_process;
gstbasertpdepayload_class->set_caps = gst_rtp_qdm2_depay_setcaps;
gstbasertppayload_class = (GstBaseRTPPayloadClass *) klass;
- parent_class = g_type_class_ref (GST_TYPE_BASE_RTP_PAYLOAD);
-
gstbasertppayload_class->set_caps = gst_rtpsirenpay_setcaps;
GST_DEBUG_CATEGORY_INIT (rtpsirenpay_debug, "rtpsirenpay", 0,
gstelement_class = (GstElementClass *) klass;
gstbasertpdepayload_class = (GstBaseRTPDepayloadClass *) klass;
- parent_class = g_type_class_peek_parent (klass);
-
gstbasertpdepayload_class->process = gst_rtp_sv3v_depay_process;
gstbasertpdepayload_class->set_caps = gst_rtp_sv3v_depay_setcaps;
gstelement_class = (GstElementClass *) klass;
gstbasertppayload_class = (GstBaseRTPPayloadClass *) klass;
- parent_class = g_type_class_peek_parent (klass);
-
gstelement_class->change_state = gst_rtp_theora_pay_change_state;
gstbasertppayload_class->set_caps = gst_rtp_theora_pay_setcaps;
gstelement_class = (GstElementClass *) klass;
gstbasertppayload_class = (GstBaseRTPPayloadClass *) klass;
- parent_class = g_type_class_peek_parent (klass);
-
gstelement_class->change_state = gst_rtp_vorbis_pay_change_state;
gstbasertppayload_class->set_caps = gst_rtp_vorbis_pay_setcaps;
gstelement_class = (GstElementClass *) klass;
gstbasertpdepayload_class = (GstBaseRTPDepayloadClass *) klass;
- parent_class = g_type_class_peek_parent (klass);
-
gstelement_class->change_state = gst_rtp_vraw_depay_change_state;
gstbasertpdepayload_class->set_caps = gst_rtp_vraw_depay_setcaps;
)
);
-static void gst_rtp_vraw_pay_class_init (GstRtpVRawPayClass * klass);
-static void gst_rtp_vraw_pay_base_init (GstRtpVRawPayClass * klass);
-static void gst_rtp_vraw_pay_init (GstRtpVRawPay * rtpvrawpay);
-
static gboolean gst_rtp_vraw_pay_setcaps (GstBaseRTPPayload * payload,
GstCaps * caps);
static GstFlowReturn gst_rtp_vraw_pay_handle_buffer (GstBaseRTPPayload *
payload, GstBuffer * buffer);
-static GstBaseRTPPayloadClass *parent_class = NULL;
+GST_BOILERPLATE (GstRtpVRawPay, gst_rtp_vraw_pay, GstBaseRTPPayload,
+ GST_TYPE_BASE_RTP_PAYLOAD)
-static GType
-gst_rtp_vraw_pay_get_type (void)
-{
- static GType rtpvrawpay_type = 0;
-
- if (!rtpvrawpay_type) {
- static const GTypeInfo rtpvrawpay_info = {
- sizeof (GstRtpVRawPayClass),
- (GBaseInitFunc) gst_rtp_vraw_pay_base_init,
- NULL,
- (GClassInitFunc) gst_rtp_vraw_pay_class_init,
- NULL,
- NULL,
- sizeof (GstRtpVRawPay),
- 0,
- (GInstanceInitFunc) gst_rtp_vraw_pay_init,
- };
-
- rtpvrawpay_type =
- g_type_register_static (GST_TYPE_BASE_RTP_PAYLOAD, "GstRtpVRawPay",
- &rtpvrawpay_info, 0);
- }
- return rtpvrawpay_type;
-}
-
-static void
-gst_rtp_vraw_pay_base_init (GstRtpVRawPayClass * klass)
+ static void gst_rtp_vraw_pay_base_init (gpointer klass)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
gstbasertppayload_class = (GstBaseRTPPayloadClass *) klass;
- parent_class = g_type_class_peek_parent (klass);
-
gstbasertppayload_class->set_caps = gst_rtp_vraw_pay_setcaps;
gstbasertppayload_class->handle_buffer = gst_rtp_vraw_pay_handle_buffer;
}
static void
-gst_rtp_vraw_pay_init (GstRtpVRawPay * rtpvrawpay)
+gst_rtp_vraw_pay_init (GstRtpVRawPay * rtpvrawpay, GstRtpVRawPayClass * klass)
{
}