rtpmux: Add GST_DEBUG_FUNCPTRs

This commit is contained in:
Olivier Crête 2009-04-15 13:23:01 -04:00
parent 66fca81e23
commit d8ba5624ce
2 changed files with 11 additions and 8 deletions

View file

@ -153,10 +153,11 @@ gst_rtp_dtmf_mux_class_init (GstRTPDTMFMuxClass * klass)
G_STRUCT_OFFSET (GstRTPDTMFMuxClass, unlocked), NULL, NULL, G_STRUCT_OFFSET (GstRTPDTMFMuxClass, unlocked), NULL, NULL,
gst_marshal_VOID__OBJECT, G_TYPE_NONE, 1, GST_TYPE_PAD); gst_marshal_VOID__OBJECT, G_TYPE_NONE, 1, GST_TYPE_PAD);
gobject_class->dispose = gst_rtp_dtmf_mux_dispose; gobject_class->dispose = GST_DEBUG_FUNCPTR (gst_rtp_dtmf_mux_dispose);
gstelement_class->release_pad = gst_rtp_mux_release_pad; gstelement_class->release_pad = GST_DEBUG_FUNCPTR (gst_rtp_mux_release_pad);
gstrtpmux_class->chain_func = gst_rtp_dtmf_mux_chain; gstrtpmux_class->chain_func = GST_DEBUG_FUNCPTR (gst_rtp_dtmf_mux_chain);
gstrtpmux_class->sink_event_func = gst_rtp_dtmf_mux_sink_event; gstrtpmux_class->sink_event_func =
GST_DEBUG_FUNCPTR (gst_rtp_dtmf_mux_sink_event);
} }
static void static void

View file

@ -176,9 +176,10 @@ gst_rtp_mux_class_init (GstRTPMuxClass * klass)
"The SSRC of the packets (-1 == random)", "The SSRC of the packets (-1 == random)",
0, G_MAXUINT, DEFAULT_SSRC, G_PARAM_READWRITE)); 0, G_MAXUINT, DEFAULT_SSRC, G_PARAM_READWRITE));
gstelement_class->request_new_pad = gst_rtp_mux_request_new_pad; gstelement_class->request_new_pad =
gstelement_class->release_pad = gst_rtp_mux_release_pad; GST_DEBUG_FUNCPTR (gst_rtp_mux_request_new_pad);
gstelement_class->change_state = gst_rtp_mux_change_state; gstelement_class->release_pad = GST_DEBUG_FUNCPTR (gst_rtp_mux_release_pad);
gstelement_class->change_state = GST_DEBUG_FUNCPTR (gst_rtp_mux_change_state);
klass->chain_func = gst_rtp_mux_chain; klass->chain_func = gst_rtp_mux_chain;
} }
@ -230,7 +231,8 @@ gst_rtp_mux_init (GstRTPMux * rtp_mux)
rtp_mux->srcpad = rtp_mux->srcpad =
gst_pad_new_from_template (gst_element_class_get_pad_template (klass, gst_pad_new_from_template (gst_element_class_get_pad_template (klass,
"src"), "src"); "src"), "src");
gst_pad_set_event_function (rtp_mux->srcpad, gst_rtp_mux_src_event); gst_pad_set_event_function (rtp_mux->srcpad,
GST_DEBUG_FUNCPTR (gst_rtp_mux_src_event));
gst_element_add_pad (GST_ELEMENT (rtp_mux), rtp_mux->srcpad); gst_element_add_pad (GST_ELEMENT (rtp_mux), rtp_mux->srcpad);
rtp_mux->ssrc = DEFAULT_SSRC; rtp_mux->ssrc = DEFAULT_SSRC;