From: Vincent Penquerc'h Date: Mon, 28 Nov 2011 13:10:01 +0000 (+0000) Subject: various: fix pad template ref leaks X-Git-Tag: 1.19.3~505^2~818^2~43 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=213ce049ad0e79588267f990c946ec60fa32bee4;p=platform%2Fupstream%2Fgstreamer.git various: fix pad template ref leaks https://bugzilla.gnome.org/show_bug.cgi?id=662664 --- diff --git a/ext/a52dec/gsta52dec.c b/ext/a52dec/gsta52dec.c index d6557be..5c7e462 100644 --- a/ext/a52dec/gsta52dec.c +++ b/ext/a52dec/gsta52dec.c @@ -128,10 +128,8 @@ gst_a52dec_base_init (gpointer g_class) { GstElementClass *element_class = GST_ELEMENT_CLASS (g_class); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&sink_factory)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&src_factory)); + gst_element_class_add_static_pad_template (element_class, &sink_factory); + gst_element_class_add_static_pad_template (element_class, &src_factory); gst_element_class_set_details_simple (element_class, "ATSC A/52 audio decoder", "Codec/Decoder/Audio", "Decodes ATSC A/52 encoded audio streams", diff --git a/ext/amrnb/amrnbdec.c b/ext/amrnb/amrnbdec.c index a2ac5f3..5f6c64b 100644 --- a/ext/amrnb/amrnbdec.c +++ b/ext/amrnb/amrnbdec.c @@ -115,10 +115,9 @@ gst_amrnbdec_base_init (gpointer klass) { GstElementClass *element_class = GST_ELEMENT_CLASS (klass); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&sink_template)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&src_template)); + gst_element_class_add_static_pad_template (element_class, + &sink_template); + gst_element_class_add_static_pad_template (element_class, &src_template); gst_element_class_set_details_simple (element_class, "AMR-NB audio decoder", "Codec/Decoder/Audio", diff --git a/ext/amrnb/amrnbenc.c b/ext/amrnb/amrnbenc.c index 3bc90f9..8070ec1 100644 --- a/ext/amrnb/amrnbenc.c +++ b/ext/amrnb/amrnbenc.c @@ -141,10 +141,9 @@ gst_amrnbenc_base_init (gpointer klass) { GstElementClass *element_class = GST_ELEMENT_CLASS (klass); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&sink_template)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&src_template)); + gst_element_class_add_static_pad_template (element_class, + &sink_template); + gst_element_class_add_static_pad_template (element_class, &src_template); gst_element_class_set_details_simple (element_class, "AMR-NB audio encoder", "Codec/Encoder/Audio", diff --git a/ext/amrwbdec/amrwbdec.c b/ext/amrwbdec/amrwbdec.c index e00dd99..e056a7a 100644 --- a/ext/amrwbdec/amrwbdec.c +++ b/ext/amrwbdec/amrwbdec.c @@ -85,10 +85,9 @@ gst_amrwbdec_base_init (gpointer klass) { GstElementClass *element_class = GST_ELEMENT_CLASS (klass); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&sink_template)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&src_template)); + gst_element_class_add_static_pad_template (element_class, + &sink_template); + gst_element_class_add_static_pad_template (element_class, &src_template); gst_element_class_set_details_simple (element_class, "AMR-WB audio decoder", "Codec/Decoder/Audio", diff --git a/ext/dvdread/dvdreadsrc.c b/ext/dvdread/dvdreadsrc.c index 1096de6..0ad709f 100644 --- a/ext/dvdread/dvdreadsrc.c +++ b/ext/dvdread/dvdreadsrc.c @@ -96,8 +96,7 @@ gst_dvd_read_src_base_init (gpointer g_class) { GstElementClass *element_class = GST_ELEMENT_CLASS (g_class); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&srctemplate)); + gst_element_class_add_static_pad_template (element_class, &srctemplate); gst_element_class_set_details_simple (element_class, "DVD Source", "Source/File/DVD", diff --git a/ext/lame/gstlame.c b/ext/lame/gstlame.c index 349d290..f36a0b2 100644 --- a/ext/lame/gstlame.c +++ b/ext/lame/gstlame.c @@ -354,10 +354,10 @@ gst_lame_base_init (gpointer g_class) { GstElementClass *element_class = GST_ELEMENT_CLASS (g_class); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_lame_src_template)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_lame_sink_template)); + gst_element_class_add_static_pad_template (element_class, + &gst_lame_src_template); + gst_element_class_add_static_pad_template (element_class, + &gst_lame_sink_template); gst_element_class_set_details_simple (element_class, "L.A.M.E. mp3 encoder", "Codec/Encoder/Audio", "High-quality free MP3 encoder (deprecated)", diff --git a/ext/lame/gstlamemp3enc.c b/ext/lame/gstlamemp3enc.c index 40f9a6f..d296697 100644 --- a/ext/lame/gstlamemp3enc.c +++ b/ext/lame/gstlamemp3enc.c @@ -215,10 +215,10 @@ gst_lamemp3enc_base_init (gpointer g_class) { GstElementClass *element_class = GST_ELEMENT_CLASS (g_class); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_lamemp3enc_src_template)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_lamemp3enc_sink_template)); + gst_element_class_add_static_pad_template (element_class, + &gst_lamemp3enc_src_template); + gst_element_class_add_static_pad_template (element_class, + &gst_lamemp3enc_sink_template); gst_element_class_set_details_simple (element_class, "L.A.M.E. mp3 encoder", "Codec/Encoder/Audio", "High-quality free MP3 encoder", diff --git a/ext/mad/gstmad.c b/ext/mad/gstmad.c index bdc4fc6..89c5027 100644 --- a/ext/mad/gstmad.c +++ b/ext/mad/gstmad.c @@ -171,10 +171,10 @@ gst_mad_base_init (gpointer g_class) { GstElementClass *element_class = GST_ELEMENT_CLASS (g_class); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&mad_sink_template_factory)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&mad_src_template_factory)); + gst_element_class_add_static_pad_template (element_class, + &mad_sink_template_factory); + gst_element_class_add_static_pad_template (element_class, + &mad_src_template_factory); gst_element_class_set_details_simple (element_class, "mad mp3 decoder", "Codec/Decoder/Audio", "Uses mad code to decode mp3 streams", "Wim Taymans "); diff --git a/ext/mpeg2dec/gstmpeg2dec.c b/ext/mpeg2dec/gstmpeg2dec.c index 833c8e4..51c47e6 100644 --- a/ext/mpeg2dec/gstmpeg2dec.c +++ b/ext/mpeg2dec/gstmpeg2dec.c @@ -157,13 +157,13 @@ gst_mpeg2dec_base_init (gpointer g_class) { GstElementClass *element_class = GST_ELEMENT_CLASS (g_class); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&src_template_factory)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&sink_template_factory)); + gst_element_class_add_static_pad_template (element_class, + &src_template_factory); + gst_element_class_add_static_pad_template (element_class, + &sink_template_factory); #ifdef enable_user_data - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&user_data_template_factory)); + gst_element_class_add_static_pad_template (element_class, + &user_data_template_factory); #endif gst_element_class_set_details_simple (element_class, "mpeg1 and mpeg2 video decoder", "Codec/Decoder/Video", diff --git a/ext/sidplay/gstsiddec.cc b/ext/sidplay/gstsiddec.cc index 82411e8..4c18eec 100644 --- a/ext/sidplay/gstsiddec.cc +++ b/ext/sidplay/gstsiddec.cc @@ -155,10 +155,10 @@ gst_siddec_base_init (gpointer g_class) "Codec/Decoder/Audio", "Use libsidplay to decode SID audio tunes", "Wim Taymans "); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&src_templ)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&sink_templ)); + gst_element_class_add_static_pad_template (element_class, + &src_templ); + gst_element_class_add_static_pad_template (element_class, + &sink_templ); } static void diff --git a/ext/twolame/gsttwolame.c b/ext/twolame/gsttwolame.c index 7d7fdc6..a1b1579 100644 --- a/ext/twolame/gsttwolame.c +++ b/ext/twolame/gsttwolame.c @@ -230,10 +230,10 @@ gst_two_lame_base_init (gpointer g_class) { GstElementClass *element_class = GST_ELEMENT_CLASS (g_class); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_two_lame_src_template)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_two_lame_sink_template)); + gst_element_class_add_static_pad_template (element_class, + &gst_two_lame_src_template); + gst_element_class_add_static_pad_template (element_class, + &gst_two_lame_sink_template); gst_element_class_set_details_simple (element_class, "TwoLAME mp2 encoder", "Codec/Encoder/Audio", "High-quality free MP2 encoder", diff --git a/ext/x264/gstx264enc.c b/ext/x264/gstx264enc.c index 3aa02fe..f85a94e 100644 --- a/ext/x264/gstx264enc.c +++ b/ext/x264/gstx264enc.c @@ -525,10 +525,8 @@ gst_x264_enc_base_init (gpointer g_class) "Josef Zlomek , " "Mark Nauwelaerts "); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&src_factory)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&sink_factory)); + gst_element_class_add_static_pad_template (element_class, &src_factory); + gst_element_class_add_static_pad_template (element_class, &sink_factory); } /* don't forget to free the string after use */ diff --git a/gst/asfdemux/gstasfdemux.c b/gst/asfdemux/gstasfdemux.c index 6391c44..d205010 100644 --- a/gst/asfdemux/gstasfdemux.c +++ b/gst/asfdemux/gstasfdemux.c @@ -116,12 +116,12 @@ gst_asf_demux_base_init (gpointer g_class) { GstElementClass *element_class = GST_ELEMENT_CLASS (g_class); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&audio_src_template)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&video_src_template)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_asf_demux_sink_template)); + gst_element_class_add_static_pad_template (element_class, + &audio_src_template); + gst_element_class_add_static_pad_template (element_class, + &video_src_template); + gst_element_class_add_static_pad_template (element_class, + &gst_asf_demux_sink_template); gst_element_class_set_details_simple (element_class, "ASF Demuxer", "Codec/Demuxer", diff --git a/gst/asfdemux/gstrtpasfdepay.c b/gst/asfdemux/gstrtpasfdepay.c index 7138be2..a04c8a8 100644 --- a/gst/asfdemux/gstrtpasfdepay.c +++ b/gst/asfdemux/gstrtpasfdepay.c @@ -69,10 +69,8 @@ gst_rtp_asf_depay_base_init (gpointer klass) { GstElementClass *element_class = GST_ELEMENT_CLASS (klass); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&src_factory)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&sink_factory)); + gst_element_class_add_static_pad_template (element_class, &src_factory); + gst_element_class_add_static_pad_template (element_class, &sink_factory); gst_element_class_set_details_simple (element_class, "RTP ASF packet depayloader", "Codec/Depayloader/Network", diff --git a/gst/dvdlpcmdec/gstdvdlpcmdec.c b/gst/dvdlpcmdec/gstdvdlpcmdec.c index 8e55073..1ecb4b3 100644 --- a/gst/dvdlpcmdec/gstdvdlpcmdec.c +++ b/gst/dvdlpcmdec/gstdvdlpcmdec.c @@ -116,10 +116,10 @@ gst_dvdlpcmdec_base_init (gpointer g_class) { GstElementClass *element_class = GST_ELEMENT_CLASS (g_class); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_dvdlpcmdec_sink_template)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_dvdlpcmdec_src_template)); + gst_element_class_add_static_pad_template (element_class, + &gst_dvdlpcmdec_sink_template); + gst_element_class_add_static_pad_template (element_class, + &gst_dvdlpcmdec_src_template); gst_element_class_set_details_simple (element_class, "DVD LPCM Audio decoder", "Codec/Decoder/Audio", "Decode DVD LPCM frames into standard PCM audio", diff --git a/gst/dvdsub/gstdvdsubdec.c b/gst/dvdsub/gstdvdsubdec.c index 868d5b3..0efa7a7 100644 --- a/gst/dvdsub/gstdvdsubdec.c +++ b/gst/dvdsub/gstdvdsubdec.c @@ -105,10 +105,9 @@ gst_dvd_sub_dec_base_init (gpointer klass) { GstElementClass *element_class = GST_ELEMENT_CLASS (klass); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&src_template)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&subtitle_template)); + gst_element_class_add_static_pad_template (element_class, &src_template); + gst_element_class_add_static_pad_template (element_class, + &subtitle_template); gst_element_class_set_details_simple (element_class, "DVD subtitle decoder", "Codec/Decoder/Video", "Decodes DVD subtitles into AYUV video frames", diff --git a/gst/dvdsub/gstdvdsubparse.c b/gst/dvdsub/gstdvdsubparse.c index e922d56..42703a9 100644 --- a/gst/dvdsub/gstdvdsubparse.c +++ b/gst/dvdsub/gstdvdsubparse.c @@ -57,10 +57,9 @@ gst_dvd_sub_parse_base_init (gpointer g_class) { GstElementClass *element_class = GST_ELEMENT_CLASS (g_class); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&src_template)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&sink_template)); + gst_element_class_add_static_pad_template (element_class, &src_template); + gst_element_class_add_static_pad_template (element_class, + &sink_template); gst_element_class_set_details_simple (element_class, "DVD subtitle parser", "Codec/Parser/Subtitle", "Parses and packetizes DVD subtitle streams", diff --git a/gst/iec958/ac3iec.c b/gst/iec958/ac3iec.c index d6c44ca..f944380 100644 --- a/gst/iec958/ac3iec.c +++ b/gst/iec958/ac3iec.c @@ -135,10 +135,10 @@ ac3iec_base_init (gpointer g_class) "Codec/Muxer/Audio", "Pads AC3 frames into IEC958 frames suitable for a raw S/PDIF interface", "Martin Soto "); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&ac3iec_sink_template)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&ac3iec_src_template)); + gst_element_class_add_static_pad_template (element_class, + &ac3iec_sink_template); + gst_element_class_add_static_pad_template (element_class, + &ac3iec_src_template); } diff --git a/gst/mpegaudioparse/gstmpegaudioparse.c b/gst/mpegaudioparse/gstmpegaudioparse.c index 9ebc20e..b451653 100644 --- a/gst/mpegaudioparse/gstmpegaudioparse.c +++ b/gst/mpegaudioparse/gstmpegaudioparse.c @@ -290,10 +290,10 @@ gst_mp3parse_base_init (gpointer klass) { GstElementClass *element_class = GST_ELEMENT_CLASS (klass); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&mp3_sink_template)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&mp3_src_template)); + gst_element_class_add_static_pad_template (element_class, + &mp3_sink_template); + gst_element_class_add_static_pad_template (element_class, + &mp3_src_template); GST_DEBUG_CATEGORY_INIT (mp3parse_debug, "mp3parse", 0, "MPEG Audio Parser"); diff --git a/gst/mpegaudioparse/gstxingmux.c b/gst/mpegaudioparse/gstxingmux.c index 4f19d57..e0207c2 100644 --- a/gst/mpegaudioparse/gstxingmux.c +++ b/gst/mpegaudioparse/gstxingmux.c @@ -390,10 +390,10 @@ gst_xing_mux_base_init (gpointer g_class) { GstElementClass *element_class = GST_ELEMENT_CLASS (g_class); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_xing_mux_src_template)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_xing_mux_sink_template)); + gst_element_class_add_static_pad_template (element_class, + &gst_xing_mux_src_template); + gst_element_class_add_static_pad_template (element_class, + &gst_xing_mux_sink_template); GST_DEBUG_CATEGORY_INIT (xing_mux_debug, "xingmux", 0, "Xing Header Muxer"); diff --git a/gst/mpegstream/gstdvddemux.c b/gst/mpegstream/gstdvddemux.c index afe9c1d..2c9d91d 100644 --- a/gst/mpegstream/gstdvddemux.c +++ b/gst/mpegstream/gstdvddemux.c @@ -188,8 +188,8 @@ gst_dvd_demux_base_init (gpointer klass) mpeg_parse_class->parse_packhead = gst_dvd_demux_parse_packhead; /* sink pad */ - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&sink_template)); + gst_element_class_add_static_pad_template (element_class, + &sink_template); demux_class->audio_template = gst_static_pad_template_get (&audio_template); diff --git a/gst/mpegstream/gstmpegdemux.c b/gst/mpegstream/gstmpegdemux.c index d129d46..e0df0fb 100644 --- a/gst/mpegstream/gstmpegdemux.c +++ b/gst/mpegstream/gstmpegdemux.c @@ -200,8 +200,8 @@ gst_mpeg_demux_class_init (GstMPEGDemuxClass * klass) klass->sync_stream_to_time = gst_mpeg_demux_sync_stream_to_time; /* we have our own sink pad template, but don't use it in subclasses */ - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&sink_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &sink_template); } static void diff --git a/gst/mpegstream/gstmpegparse.c b/gst/mpegstream/gstmpegparse.c index 1033ff5..a0649c7 100644 --- a/gst/mpegstream/gstmpegparse.c +++ b/gst/mpegstream/gstmpegparse.c @@ -161,10 +161,10 @@ gst_mpeg_parse_class_init (GstMPEGParseClass * klass) /* FIXME: this is a hack. We add the pad templates here instead * in the base_init function, since the derived class (mpegdemux) * uses different pads. IMO, this is wrong. */ - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&src_factory)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&sink_factory)); + gst_element_class_add_static_pad_template (gstelement_class, + &src_factory); + gst_element_class_add_static_pad_template (gstelement_class, + &sink_factory); g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_MAX_SCR_GAP, g_param_spec_int ("max-scr-gap", "Max SCR gap", diff --git a/gst/mpegstream/gstrfc2250enc.c b/gst/mpegstream/gstrfc2250enc.c index e5fcb78..608292a 100644 --- a/gst/mpegstream/gstrfc2250enc.c +++ b/gst/mpegstream/gstrfc2250enc.c @@ -100,10 +100,8 @@ gst_rfc2250_enc_base_init (GstRFC2250EncClass * klass) { GstElementClass *element_class = GST_ELEMENT_CLASS (klass); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&src_factory)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&sink_factory)); + gst_element_class_add_static_pad_template (element_class, &src_factory); + gst_element_class_add_static_pad_template (element_class, &sink_factory); gst_element_class_set_details_simple (element_class, "RFC 2250 packet encoder", "Codec/Parser", "transforms MPEG1/2 video to an RFC 2250 compliant format", diff --git a/gst/realmedia/pnmsrc.c b/gst/realmedia/pnmsrc.c index a8b168e..bf6d9ae 100644 --- a/gst/realmedia/pnmsrc.c +++ b/gst/realmedia/pnmsrc.c @@ -85,8 +85,8 @@ gst_pnm_src_base_init (gpointer klass) { GstElementClass *element_class = GST_ELEMENT_CLASS (klass); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_pnm_src_template)); + gst_element_class_add_static_pad_template (element_class, + &gst_pnm_src_template); gst_element_class_set_details_simple (element_class, "PNM packet receiver", "Source/Network", diff --git a/gst/realmedia/rademux.c b/gst/realmedia/rademux.c index eb9832f..fdbfd73 100644 --- a/gst/realmedia/rademux.c +++ b/gst/realmedia/rademux.c @@ -82,10 +82,9 @@ gst_real_audio_demux_base_init (gpointer klass) { GstElementClass *element_class = GST_ELEMENT_CLASS (klass); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&sink_template)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&src_template)); + gst_element_class_add_static_pad_template (element_class, + &sink_template); + gst_element_class_add_static_pad_template (element_class, &src_template); gst_element_class_set_details_simple (element_class, "RealAudio Demuxer", "Codec/Demuxer", "Demultiplex a RealAudio file", diff --git a/gst/realmedia/rdtdepay.c b/gst/realmedia/rdtdepay.c index c3b679f..cf2289c 100644 --- a/gst/realmedia/rdtdepay.c +++ b/gst/realmedia/rdtdepay.c @@ -80,10 +80,10 @@ gst_rdt_depay_base_init (gpointer klass) { GstElementClass *element_class = GST_ELEMENT_CLASS (klass); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_rdt_depay_src_template)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_rdt_depay_sink_template)); + gst_element_class_add_static_pad_template (element_class, + &gst_rdt_depay_src_template); + gst_element_class_add_static_pad_template (element_class, + &gst_rdt_depay_sink_template); gst_element_class_set_details_simple (element_class, "RDT packet parser", "Codec/Depayloader/Network", diff --git a/gst/realmedia/rdtmanager.c b/gst/realmedia/rdtmanager.c index 313d0de..29c8b66 100644 --- a/gst/realmedia/rdtmanager.c +++ b/gst/realmedia/rdtmanager.c @@ -325,15 +325,15 @@ gst_rdt_manager_base_init (gpointer klass) GstElementClass *element_class = GST_ELEMENT_CLASS (klass); /* sink pads */ - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_rdt_manager_recv_rtp_sink_template)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_rdt_manager_recv_rtcp_sink_template)); + gst_element_class_add_static_pad_template (element_class, + &gst_rdt_manager_recv_rtp_sink_template); + gst_element_class_add_static_pad_template (element_class, + &gst_rdt_manager_recv_rtcp_sink_template); /* src pads */ - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_rdt_manager_recv_rtp_src_template)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_rdt_manager_rtcp_src_template)); + gst_element_class_add_static_pad_template (element_class, + &gst_rdt_manager_recv_rtp_src_template); + gst_element_class_add_static_pad_template (element_class, + &gst_rdt_manager_rtcp_src_template); gst_element_class_set_details_simple (element_class, "RTP Decoder", "Codec/Parser/Network", diff --git a/gst/realmedia/rmdemux.c b/gst/realmedia/rmdemux.c index 65abd7e..9ee028e 100644 --- a/gst/realmedia/rmdemux.c +++ b/gst/realmedia/rmdemux.c @@ -196,12 +196,12 @@ gst_rmdemux_base_init (GstRMDemuxClass * klass) { GstElementClass *element_class = GST_ELEMENT_CLASS (klass); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_rmdemux_sink_template)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_rmdemux_videosrc_template)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_rmdemux_audiosrc_template)); + gst_element_class_add_static_pad_template (element_class, + &gst_rmdemux_sink_template); + gst_element_class_add_static_pad_template (element_class, + &gst_rmdemux_videosrc_template); + gst_element_class_add_static_pad_template (element_class, + &gst_rmdemux_audiosrc_template); gst_element_class_set_details_simple (element_class, "RealMedia Demuxer", "Codec/Demuxer", "Demultiplex a RealMedia file into audio and video streams", diff --git a/gst/synaesthesia/gstsynaesthesia.c b/gst/synaesthesia/gstsynaesthesia.c index 79ca45f..4b74f75 100644 --- a/gst/synaesthesia/gstsynaesthesia.c +++ b/gst/synaesthesia/gstsynaesthesia.c @@ -78,10 +78,10 @@ gst_synaesthesia_base_init (gpointer g_class) "Creates video visualizations of audio input, using stereo and pitch information", "Richard Boulton "); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_synaesthesia_src_template)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_synaesthesia_sink_template)); + gst_element_class_add_static_pad_template (element_class, + &gst_synaesthesia_src_template); + gst_element_class_add_static_pad_template (element_class, + &gst_synaesthesia_sink_template); } static void