mimic: Add GST_DEBUG_FUNCPTR where appropriate

This commit is contained in:
Olivier Crête 2009-10-12 18:39:06 -04:00
parent b8e86cc8ad
commit 81a055f20d
2 changed files with 12 additions and 7 deletions

View file

@ -101,7 +101,7 @@ gst_mim_dec_class_init (GstMimDecClass * klass)
gobject_class = (GObjectClass *) klass;
gstelement_class = (GstElementClass *) klass;
gstelement_class->change_state = gst_mim_dec_change_state;
gstelement_class->change_state = GST_DEBUG_FUNCPTR (gst_mim_dec_change_state);
gobject_class->finalize = gst_mim_dec_finalize;
@ -113,8 +113,10 @@ gst_mim_dec_init (GstMimDec * mimdec, GstMimDecClass * klass)
{
mimdec->sinkpad = gst_pad_new_from_static_template (&sink_factory, "sink");
gst_element_add_pad (GST_ELEMENT (mimdec), mimdec->sinkpad);
gst_pad_set_chain_function (mimdec->sinkpad, gst_mim_dec_chain);
gst_pad_set_event_function (mimdec->sinkpad, gst_mim_dec_sink_event);
gst_pad_set_chain_function (mimdec->sinkpad,
GST_DEBUG_FUNCPTR (gst_mim_dec_chain));
gst_pad_set_event_function (mimdec->sinkpad,
GST_DEBUG_FUNCPTR (gst_mim_dec_sink_event));
mimdec->srcpad = gst_pad_new_from_static_template (&src_factory, "src");
gst_element_add_pad (GST_ELEMENT (mimdec), mimdec->srcpad);

View file

@ -131,7 +131,7 @@ gst_mim_enc_class_init (GstMimEncClass * klass)
gobject_class = (GObjectClass *) klass;
gstelement_class = (GstElementClass *) klass;
gstelement_class->change_state = gst_mim_enc_change_state;
gstelement_class->change_state = GST_DEBUG_FUNCPTR (gst_mim_enc_change_state);
GST_DEBUG_CATEGORY_INIT (mimenc_debug, "mimenc", 0, "Mimic encoder plugin");
}
@ -141,9 +141,12 @@ gst_mim_enc_init (GstMimEnc * mimenc, GstMimEncClass * klass)
{
mimenc->sinkpad = gst_pad_new_from_static_template (&sink_factory, "sink");
gst_element_add_pad (GST_ELEMENT (mimenc), mimenc->sinkpad);
gst_pad_set_setcaps_function (mimenc->sinkpad, gst_mim_enc_setcaps);
gst_pad_set_chain_function (mimenc->sinkpad, gst_mim_enc_chain);
gst_pad_set_event_function (mimenc->sinkpad, gst_mim_enc_event);
gst_pad_set_setcaps_function (mimenc->sinkpad,
GST_DEBUG_FUNCPTR (gst_mim_enc_setcaps));
gst_pad_set_chain_function (mimenc->sinkpad,
GST_DEBUG_FUNCPTR (gst_mim_enc_chain));
gst_pad_set_event_function (mimenc->sinkpad,
GST_DEBUG_FUNCPTR (gst_mim_enc_event));
mimenc->srcpad = gst_pad_new_from_static_template (&src_factory, "src");
gst_element_add_pad (GST_ELEMENT (mimenc), mimenc->srcpad);