From acbf0313ef9df0f8dc3fcb7badda3c2cb93d1762 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 11 Sep 2012 11:12:38 +0200 Subject: [PATCH] mad: init base class method only once --- ext/mad/gstmad.c | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/ext/mad/gstmad.c b/ext/mad/gstmad.c index 2326e85147..437d152583 100644 --- a/ext/mad/gstmad.c +++ b/ext/mad/gstmad.c @@ -97,18 +97,6 @@ gst_mad_class_init (GstMadClass * klass) GstElementClass *element_class = (GstElementClass *) klass; GstAudioDecoderClass *base_class = (GstAudioDecoderClass *) klass; - base_class->start = GST_DEBUG_FUNCPTR (gst_mad_start); - base_class->stop = GST_DEBUG_FUNCPTR (gst_mad_stop); - base_class->parse = GST_DEBUG_FUNCPTR (gst_mad_parse); - base_class->handle_frame = GST_DEBUG_FUNCPTR (gst_mad_handle_frame); - base_class->flush = GST_DEBUG_FUNCPTR (gst_mad_flush); - - base_class->start = GST_DEBUG_FUNCPTR (gst_mad_start); - base_class->stop = GST_DEBUG_FUNCPTR (gst_mad_stop); - base_class->parse = GST_DEBUG_FUNCPTR (gst_mad_parse); - base_class->handle_frame = GST_DEBUG_FUNCPTR (gst_mad_handle_frame); - base_class->flush = GST_DEBUG_FUNCPTR (gst_mad_flush); - gobject_class->set_property = gst_mad_set_property; gobject_class->get_property = gst_mad_get_property; @@ -131,6 +119,12 @@ gst_mad_class_init (GstMadClass * klass) gst_element_class_set_static_metadata (element_class, "mad mp3 decoder", "Codec/Decoder/Audio", "Uses mad code to decode mp3 streams", "Wim Taymans "); + + base_class->start = GST_DEBUG_FUNCPTR (gst_mad_start); + base_class->stop = GST_DEBUG_FUNCPTR (gst_mad_stop); + base_class->parse = GST_DEBUG_FUNCPTR (gst_mad_parse); + base_class->handle_frame = GST_DEBUG_FUNCPTR (gst_mad_handle_frame); + base_class->flush = GST_DEBUG_FUNCPTR (gst_mad_flush); } static void