diff --git a/ext/aalib/gstaasink.c b/ext/aalib/gstaasink.c index 6e2365ed74..880e479570 100644 --- a/ext/aalib/gstaasink.c +++ b/ext/aalib/gstaasink.c @@ -209,8 +209,7 @@ gst_aasink_class_init (GstAASinkClass * klass) g_param_spec_int ("frame-time", "frame time", "frame time", G_MININT, G_MAXINT, 0, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); - 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); gst_element_class_set_static_metadata (gstelement_class, "ASCII art video sink", "Sink/Video", "An ASCII art videosink", diff --git a/ext/cairo/gstcairooverlay.c b/ext/cairo/gstcairooverlay.c index 88d74fbff7..9aa4c53ea5 100644 --- a/ext/cairo/gstcairooverlay.c +++ b/ext/cairo/gstcairooverlay.c @@ -242,10 +242,10 @@ gst_cairo_overlay_class_init (GstCairoOverlayClass * klass) "Render overlay on a video stream using Cairo", "Jon Nordby "); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_cairo_overlay_sink_template)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_cairo_overlay_src_template)); + gst_element_class_add_static_pad_template (element_class, + &gst_cairo_overlay_sink_template); + gst_element_class_add_static_pad_template (element_class, + &gst_cairo_overlay_src_template); } static void diff --git a/ext/dv/gstdvdec.c b/ext/dv/gstdvdec.c index 89911d70c5..e4f0109b18 100644 --- a/ext/dv/gstdvdec.c +++ b/ext/dv/gstdvdec.c @@ -174,10 +174,8 @@ gst_dvdec_class_init (GstDVDecClass * klass) gstelement_class->change_state = GST_DEBUG_FUNCPTR (gst_dvdec_change_state); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&sink_temp)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&src_temp)); + gst_element_class_add_static_pad_template (gstelement_class, &sink_temp); + gst_element_class_add_static_pad_template (gstelement_class, &src_temp); gst_element_class_set_static_metadata (gstelement_class, "DV video decoder", "Codec/Decoder/Video", diff --git a/ext/dv/gstdvdemux.c b/ext/dv/gstdvdemux.c index 51eaaaf224..4386be0c4d 100644 --- a/ext/dv/gstdvdemux.c +++ b/ext/dv/gstdvdemux.c @@ -182,12 +182,9 @@ gst_dvdemux_class_init (GstDVDemuxClass * klass) gstelement_class->change_state = GST_DEBUG_FUNCPTR (gst_dvdemux_change_state); gstelement_class->send_event = GST_DEBUG_FUNCPTR (gst_dvdemux_send_event); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&sink_temp)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&video_src_temp)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&audio_src_temp)); + gst_element_class_add_static_pad_template (gstelement_class, &sink_temp); + gst_element_class_add_static_pad_template (gstelement_class, &video_src_temp); + gst_element_class_add_static_pad_template (gstelement_class, &audio_src_temp); gst_element_class_set_static_metadata (gstelement_class, "DV system stream demuxer", "Codec/Demuxer", diff --git a/ext/flac/gstflacdec.c b/ext/flac/gstflacdec.c index 515ffbda7b..dbaa0f1713 100644 --- a/ext/flac/gstflacdec.c +++ b/ext/flac/gstflacdec.c @@ -164,10 +164,10 @@ gst_flac_dec_class_init (GstFlacDecClass * klass) audiodecoder_class->handle_frame = GST_DEBUG_FUNCPTR (gst_flac_dec_handle_frame); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&flac_dec_src_factory)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&flac_dec_sink_factory)); + gst_element_class_add_static_pad_template (gstelement_class, + &flac_dec_src_factory); + gst_element_class_add_static_pad_template (gstelement_class, + &flac_dec_sink_factory); gst_element_class_set_static_metadata (gstelement_class, "FLAC audio decoder", "Codec/Decoder/Audio", "Decodes FLAC lossless audio streams", diff --git a/ext/flac/gstflacenc.c b/ext/flac/gstflacenc.c index 0e3940fa62..048bb8cbe5 100644 --- a/ext/flac/gstflacenc.c +++ b/ext/flac/gstflacenc.c @@ -341,8 +341,7 @@ gst_flac_enc_class_init (GstFlacEncClass * klass) DEFAULT_SEEKPOINTS, G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&src_factory)); + gst_element_class_add_static_pad_template (gstelement_class, &src_factory); sink_caps = gst_flac_enc_generate_sink_caps (); sink_templ = gst_pad_template_new ("sink", diff --git a/ext/flac/gstflactag.c b/ext/flac/gstflactag.c index 5f524f1c27..8047bd90da 100644 --- a/ext/flac/gstflactag.c +++ b/ext/flac/gstflactag.c @@ -109,11 +109,10 @@ gst_flac_tag_class_init (GstFlacTagClass * klass) "Formatter/Metadata", "Rewrite tags in a FLAC file", "Christophe Fergeau "); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&flac_tag_sink_template)); - - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&flac_tag_src_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &flac_tag_sink_template); + gst_element_class_add_static_pad_template (gstelement_class, + &flac_tag_src_template); } static void diff --git a/ext/gdk_pixbuf/gstgdkpixbufdec.c b/ext/gdk_pixbuf/gstgdkpixbufdec.c index 589e74fa3a..735f07951d 100644 --- a/ext/gdk_pixbuf/gstgdkpixbufdec.c +++ b/ext/gdk_pixbuf/gstgdkpixbufdec.c @@ -180,10 +180,10 @@ gst_gdk_pixbuf_dec_class_init (GstGdkPixbufDecClass * klass) gstelement_class->change_state = GST_DEBUG_FUNCPTR (gst_gdk_pixbuf_dec_change_state); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_gdk_pixbuf_dec_src_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_gdk_pixbuf_dec_sink_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_gdk_pixbuf_dec_src_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_gdk_pixbuf_dec_sink_template); gst_element_class_set_static_metadata (gstelement_class, "GdkPixbuf image decoder", "Codec/Decoder/Image", "Decodes images in a video stream using GdkPixbuf", diff --git a/ext/gdk_pixbuf/gstgdkpixbufoverlay.c b/ext/gdk_pixbuf/gstgdkpixbufoverlay.c index 842eca5e95..85421dbcba 100644 --- a/ext/gdk_pixbuf/gstgdkpixbufoverlay.c +++ b/ext/gdk_pixbuf/gstgdkpixbufoverlay.c @@ -240,10 +240,8 @@ gst_gdk_pixbuf_overlay_class_init (GstGdkPixbufOverlayClass * klass) GST_TYPE_GDK_PIXBUF_POSITIONING_MODE, DEFAULT_POSITIONING_MODE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); - 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_static_metadata (element_class, "GdkPixbuf Overlay", "Filter/Effect/Video", diff --git a/ext/gdk_pixbuf/gstgdkpixbufsink.c b/ext/gdk_pixbuf/gstgdkpixbufsink.c index 0151569e3e..fabd6bf8f4 100644 --- a/ext/gdk_pixbuf/gstgdkpixbufsink.c +++ b/ext/gdk_pixbuf/gstgdkpixbufsink.c @@ -149,8 +149,8 @@ gst_gdk_pixbuf_sink_class_init (GstGdkPixbufSinkClass * klass) "Sink/Video", "Output images as GdkPixbuf objects in bus messages", "Tim-Philipp Müller "); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&pixbufsink_sink_factory)); + gst_element_class_add_static_pad_template (element_class, + &pixbufsink_sink_factory); gobject_class->set_property = gst_gdk_pixbuf_sink_set_property; gobject_class->get_property = gst_gdk_pixbuf_sink_get_property; diff --git a/ext/jack/gstjackaudiosink.c b/ext/jack/gstjackaudiosink.c index dd8b73f888..4f49f25760 100644 --- a/ext/jack/gstjackaudiosink.c +++ b/ext/jack/gstjackaudiosink.c @@ -785,8 +785,8 @@ gst_jack_audio_sink_class_init (GstJackAudioSinkClass * klass) "Sink/Audio", "Output audio to a JACK server", "Wim Taymans "); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&jackaudiosink_sink_factory)); + gst_element_class_add_static_pad_template (gstelement_class, + &jackaudiosink_sink_factory); gstbasesink_class->get_caps = GST_DEBUG_FUNCPTR (gst_jack_audio_sink_getcaps); diff --git a/ext/jack/gstjackaudiosrc.c b/ext/jack/gstjackaudiosrc.c index bc0d9082ed..53ebee70f8 100644 --- a/ext/jack/gstjackaudiosrc.c +++ b/ext/jack/gstjackaudiosrc.c @@ -801,8 +801,7 @@ gst_jack_audio_src_class_init (GstJackAudioSrcClass * klass) GST_TYPE_JACK_TRANSPORT, DEFAULT_PROP_TRANSPORT, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&src_factory)); + gst_element_class_add_static_pad_template (gstelement_class, &src_factory); gst_element_class_set_static_metadata (gstelement_class, "Audio Source (Jack)", "Source/Audio", diff --git a/ext/jpeg/gstjpegdec.c b/ext/jpeg/gstjpegdec.c index 0ccfca9b5e..2d440dcfc2 100644 --- a/ext/jpeg/gstjpegdec.c +++ b/ext/jpeg/gstjpegdec.c @@ -160,13 +160,13 @@ gst_jpeg_dec_class_init (GstJpegDecClass * klass) G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_DEPRECATED)); #endif - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_jpeg_dec_src_pad_template)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_jpeg_dec_sink_pad_template)); + gst_element_class_add_static_pad_template (element_class, + &gst_jpeg_dec_src_pad_template); + gst_element_class_add_static_pad_template (element_class, + &gst_jpeg_dec_sink_pad_template); gst_element_class_set_static_metadata (element_class, "JPEG image decoder", - "Codec/Decoder/Image", - "Decode images from JPEG format", "Wim Taymans "); + "Codec/Decoder/Image", "Decode images from JPEG format", + "Wim Taymans "); vdec_class->start = gst_jpeg_dec_start; vdec_class->stop = gst_jpeg_dec_stop; diff --git a/ext/jpeg/gstjpegenc.c b/ext/jpeg/gstjpegenc.c index c1ba69473b..67ae6dc76b 100644 --- a/ext/jpeg/gstjpegenc.c +++ b/ext/jpeg/gstjpegenc.c @@ -150,13 +150,13 @@ gst_jpegenc_class_init (GstJpegEncClass * klass) JPEG_DEFAULT_IDCT_METHOD, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_jpegenc_sink_pad_template)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_jpegenc_src_pad_template)); + gst_element_class_add_static_pad_template (element_class, + &gst_jpegenc_sink_pad_template); + gst_element_class_add_static_pad_template (element_class, + &gst_jpegenc_src_pad_template); gst_element_class_set_static_metadata (element_class, "JPEG image encoder", - "Codec/Encoder/Image", - "Encode images in JPEG format", "Wim Taymans "); + "Codec/Encoder/Image", "Encode images in JPEG format", + "Wim Taymans "); venc_class->start = gst_jpegenc_start; venc_class->stop = gst_jpegenc_stop; diff --git a/ext/jpeg/gstsmokedec.c b/ext/jpeg/gstsmokedec.c index 53d54b07fc..816d9546de 100644 --- a/ext/jpeg/gstsmokedec.c +++ b/ext/jpeg/gstsmokedec.c @@ -106,13 +106,13 @@ gst_smokedec_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_smokedec_src_pad_template)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_smokedec_sink_pad_template)); + gst_element_class_add_static_pad_template (element_class, + &gst_smokedec_src_pad_template); + gst_element_class_add_static_pad_template (element_class, + &gst_smokedec_sink_pad_template); gst_element_class_set_static_metadata (element_class, "Smoke video decoder", - "Codec/Decoder/Video", - "Decode video from Smoke format", "Wim Taymans "); + "Codec/Decoder/Video", "Decode video from Smoke format", + "Wim Taymans "); } static void diff --git a/ext/jpeg/gstsmokeenc.c b/ext/jpeg/gstsmokeenc.c index 91f6e9d5f5..32b0687384 100644 --- a/ext/jpeg/gstsmokeenc.c +++ b/ext/jpeg/gstsmokeenc.c @@ -123,13 +123,13 @@ gst_smokeenc_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_smokeenc_sink_pad_template)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_smokeenc_src_pad_template)); + gst_element_class_add_static_pad_template (element_class, + &gst_smokeenc_sink_pad_template); + gst_element_class_add_static_pad_template (element_class, + &gst_smokeenc_src_pad_template); gst_element_class_set_static_metadata (element_class, "Smoke video encoder", - "Codec/Encoder/Video", - "Encode images into the Smoke format", "Wim Taymans "); + "Codec/Encoder/Video", "Encode images into the Smoke format", + "Wim Taymans "); } static void diff --git a/ext/libcaca/gstcacasink.c b/ext/libcaca/gstcacasink.c index 0f46280e1a..4e35f083bd 100644 --- a/ext/libcaca/gstcacasink.c +++ b/ext/libcaca/gstcacasink.c @@ -152,8 +152,7 @@ gst_cacasink_class_init (GstCACASinkClass * klass) gst_element_class_set_static_metadata (gstelement_class, "A colored ASCII art video sink", "Sink/Video", "A colored ASCII art videosink", "Zeeshan Ali "); - 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); gstbasesink_class->set_caps = GST_DEBUG_FUNCPTR (gst_cacasink_setcaps); gstbasesink_class->get_times = GST_DEBUG_FUNCPTR (gst_cacasink_get_times); diff --git a/ext/libpng/gstpngdec.c b/ext/libpng/gstpngdec.c index 7c98181ba1..0701e5cb07 100644 --- a/ext/libpng/gstpngdec.c +++ b/ext/libpng/gstpngdec.c @@ -81,13 +81,12 @@ gst_pngdec_class_init (GstPngDecClass * klass) GstElementClass *element_class = (GstElementClass *) klass; GstVideoDecoderClass *vdec_class = (GstVideoDecoderClass *) klass; - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_pngdec_src_pad_template)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_pngdec_sink_pad_template)); + gst_element_class_add_static_pad_template (element_class, + &gst_pngdec_src_pad_template); + gst_element_class_add_static_pad_template (element_class, + &gst_pngdec_sink_pad_template); gst_element_class_set_static_metadata (element_class, "PNG image decoder", - "Codec/Decoder/Image", - "Decode a png video frame to a raw image", + "Codec/Decoder/Image", "Decode a png video frame to a raw image", "Wim Taymans "); vdec_class->start = gst_pngdec_start; diff --git a/ext/libpng/gstpngenc.c b/ext/libpng/gstpngenc.c index df763ed324..3d3e116b2f 100644 --- a/ext/libpng/gstpngenc.c +++ b/ext/libpng/gstpngenc.c @@ -128,10 +128,10 @@ gst_pngenc_class_init (GstPngEncClass * klass) DEFAULT_COMPRESSION_LEVEL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); - gst_element_class_add_pad_template - (element_class, gst_static_pad_template_get (&pngenc_sink_template)); - gst_element_class_add_pad_template - (element_class, gst_static_pad_template_get (&pngenc_src_template)); + gst_element_class_add_static_pad_template + (element_class, &pngenc_sink_template); + gst_element_class_add_static_pad_template + (element_class, &pngenc_src_template); gst_element_class_set_static_metadata (element_class, "PNG image encoder", "Codec/Encoder/Image", "Encode a video frame to a .png image", diff --git a/ext/pulse/pulsesink.c b/ext/pulse/pulsesink.c index f7685f71f1..76cfc54f9a 100644 --- a/ext/pulse/pulsesink.c +++ b/ext/pulse/pulsesink.c @@ -1989,8 +1989,7 @@ gst_pulsesink_class_init (GstPulseSinkClass * klass) gst_element_class_set_static_metadata (gstelement_class, "PulseAudio Audio Sink", "Sink/Audio", "Plays audio to a PulseAudio server", "Lennart Poettering"); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&pad_template)); + gst_element_class_add_static_pad_template (gstelement_class, &pad_template); } static void diff --git a/ext/pulse/pulsesrc.c b/ext/pulse/pulsesrc.c index 6658654ac6..6ee2c506da 100644 --- a/ext/pulse/pulsesrc.c +++ b/ext/pulse/pulsesrc.c @@ -222,8 +222,7 @@ gst_pulsesrc_class_init (GstPulseSrcClass * klass) "PulseAudio Audio Source", "Source/Audio", "Captures audio from a PulseAudio server", "Lennart Poettering"); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&pad_template)); + gst_element_class_add_static_pad_template (gstelement_class, &pad_template); /** * GstPulseSrc:volume: diff --git a/ext/raw1394/gstdv1394src.c b/ext/raw1394/gstdv1394src.c index dbc7607268..bee1af130b 100644 --- a/ext/raw1394/gstdv1394src.c +++ b/ext/raw1394/gstdv1394src.c @@ -218,8 +218,7 @@ gst_dv1394src_class_init (GstDV1394SrcClass * klass) gstpushsrc_class->create = gst_dv1394src_create; - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&src_factory)); + gst_element_class_add_static_pad_template (gstelement_class, &src_factory); gst_element_class_set_static_metadata (gstelement_class, "Firewire (1394) DV video source", "Source/Video", diff --git a/ext/raw1394/gsthdv1394src.c b/ext/raw1394/gsthdv1394src.c index 0b07a3723f..04ceb4f3c0 100644 --- a/ext/raw1394/gsthdv1394src.c +++ b/ext/raw1394/gsthdv1394src.c @@ -168,8 +168,7 @@ gst_hdv1394src_class_init (GstHDV1394SrcClass * klass) gstpushsrc_class->create = gst_hdv1394src_create; - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&src_factory)); + gst_element_class_add_static_pad_template (gstelement_class, &src_factory); gst_element_class_set_static_metadata (gstelement_class, "Firewire (1394) HDV video source", "Source/Video", diff --git a/ext/shout2/gstshout2.c b/ext/shout2/gstshout2.c index e154ba8718..3952e77824 100644 --- a/ext/shout2/gstshout2.c +++ b/ext/shout2/gstshout2.c @@ -223,8 +223,7 @@ gst_shout2send_class_init (GstShout2sendClass * klass) gstbasesink_class->event = GST_DEBUG_FUNCPTR (gst_shout2send_event); gstbasesink_class->set_caps = GST_DEBUG_FUNCPTR (gst_shout2send_setcaps); - 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); gst_element_class_set_static_metadata (gstelement_class, "Icecast network sink", diff --git a/ext/soup/gstsouphttpclientsink.c b/ext/soup/gstsouphttpclientsink.c index 108aabfc3b..1b4e6004c4 100644 --- a/ext/soup/gstsouphttpclientsink.c +++ b/ext/soup/gstsouphttpclientsink.c @@ -192,8 +192,8 @@ gst_soup_http_client_sink_class_init (GstSoupHttpClientSinkClass * klass) SOUP_TYPE_LOGGER_LOG_LEVEL, DEFAULT_SOUP_LOG_LEVEL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_soup_http_client_sink_sink_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_soup_http_client_sink_sink_template); gst_element_class_set_static_metadata (gstelement_class, "HTTP client sink", "Generic", "Sends streams to HTTP server via PUT", diff --git a/ext/soup/gstsouphttpsrc.c b/ext/soup/gstsouphttpsrc.c index 9c652d865a..f1475ae39c 100644 --- a/ext/soup/gstsouphttpsrc.c +++ b/ext/soup/gstsouphttpsrc.c @@ -421,8 +421,7 @@ gst_soup_http_src_class_init (GstSoupHTTPSrcClass * klass) "The HTTP method to use (GET, HEAD, OPTIONS, etc)", DEFAULT_SOUP_METHOD, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&srctemplate)); + gst_element_class_add_static_pad_template (gstelement_class, &srctemplate); gst_element_class_set_static_metadata (gstelement_class, "HTTP client source", "Source/Network", diff --git a/ext/speex/gstspeexdec.c b/ext/speex/gstspeexdec.c index daceaeea4f..cc123ce06c 100644 --- a/ext/speex/gstspeexdec.c +++ b/ext/speex/gstspeexdec.c @@ -114,10 +114,10 @@ gst_speex_dec_class_init (GstSpeexDecClass * klass) g_param_spec_boolean ("enh", "Enh", "Enable perceptual enhancement", DEFAULT_ENH, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&speex_dec_src_factory)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&speex_dec_sink_factory)); + gst_element_class_add_static_pad_template (gstelement_class, + &speex_dec_src_factory); + gst_element_class_add_static_pad_template (gstelement_class, + &speex_dec_sink_factory); gst_element_class_set_static_metadata (gstelement_class, "Speex audio decoder", "Codec/Decoder/Audio", "decode speex streams to audio", "Wim Taymans "); diff --git a/ext/speex/gstspeexenc.c b/ext/speex/gstspeexenc.c index 31712b6878..4266af63b0 100644 --- a/ext/speex/gstspeexenc.c +++ b/ext/speex/gstspeexenc.c @@ -211,10 +211,8 @@ gst_speex_enc_class_init (GstSpeexEncClass * klass) "The last status message", NULL, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); - 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); gst_element_class_set_static_metadata (gstelement_class, "Speex audio encoder", "Codec/Encoder/Audio", "Encodes audio in Speex format", "Wim Taymans "); diff --git a/ext/taglib/gstapev2mux.cc b/ext/taglib/gstapev2mux.cc index e69de7e256..9659dafca0 100644 --- a/ext/taglib/gstapev2mux.cc +++ b/ext/taglib/gstapev2mux.cc @@ -86,10 +86,8 @@ gst_apev2_mux_class_init (GstApev2MuxClass * klass) GST_TAG_MUX_CLASS (klass)->render_end_tag = GST_DEBUG_FUNCPTR (gst_apev2_mux_render_end_tag); - 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_static_metadata (element_class, "TagLib-based APEv2 Muxer", "Formatter/Metadata", diff --git a/ext/taglib/gstid3v2mux.cc b/ext/taglib/gstid3v2mux.cc index 8651e7782a..3ec9116540 100644 --- a/ext/taglib/gstid3v2mux.cc +++ b/ext/taglib/gstid3v2mux.cc @@ -94,10 +94,8 @@ gst_id3v2_mux_class_init (GstId3v2MuxClass * klass) GST_TAG_MUX_CLASS (klass)->render_end_tag = GST_DEBUG_FUNCPTR (gst_id3v2_mux_render_end_tag); - 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_static_metadata (element_class, "TagLib-based ID3v2 Muxer", "Formatter/Metadata", diff --git a/ext/vpx/gstvp8dec.c b/ext/vpx/gstvp8dec.c index 5b8eadeb6b..6a9625cd41 100644 --- a/ext/vpx/gstvp8dec.c +++ b/ext/vpx/gstvp8dec.c @@ -87,11 +87,10 @@ gst_vp8_dec_class_init (GstVP8DecClass * klass) element_class = GST_ELEMENT_CLASS (klass); vpx_class = GST_VPX_DEC_CLASS (klass); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_vp8_dec_sink_template)); - - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_vp8_dec_src_template)); + gst_element_class_add_static_pad_template (element_class, + &gst_vp8_dec_sink_template); + gst_element_class_add_static_pad_template (element_class, + &gst_vp8_dec_src_template); gst_element_class_set_static_metadata (element_class, "On2 VP8 Decoder", diff --git a/ext/vpx/gstvp8enc.c b/ext/vpx/gstvp8enc.c index d5f06824b3..819b38827a 100644 --- a/ext/vpx/gstvp8enc.c +++ b/ext/vpx/gstvp8enc.c @@ -141,10 +141,10 @@ gst_vp8_enc_class_init (GstVP8EncClass * klass) vpx_encoder_class = GST_VPX_ENC_CLASS (klass); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_vp8_enc_src_template)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_vp8_enc_sink_template)); + gst_element_class_add_static_pad_template (element_class, + &gst_vp8_enc_src_template); + gst_element_class_add_static_pad_template (element_class, + &gst_vp8_enc_sink_template); gst_element_class_set_static_metadata (element_class, "On2 VP8 Encoder", diff --git a/ext/vpx/gstvp9dec.c b/ext/vpx/gstvp9dec.c index d08a2f7e8d..cbd750bbe9 100644 --- a/ext/vpx/gstvp9dec.c +++ b/ext/vpx/gstvp9dec.c @@ -89,10 +89,10 @@ gst_vp9_dec_class_init (GstVP9DecClass * klass) element_class = GST_ELEMENT_CLASS (klass); vpx_class = GST_VPX_DEC_CLASS (klass); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_vp9_dec_src_template)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_vp9_dec_sink_template)); + gst_element_class_add_static_pad_template (element_class, + &gst_vp9_dec_src_template); + gst_element_class_add_static_pad_template (element_class, + &gst_vp9_dec_sink_template); gst_element_class_set_static_metadata (element_class, "On2 VP9 Decoder", diff --git a/ext/vpx/gstvp9enc.c b/ext/vpx/gstvp9enc.c index b8256ae8d6..593544a033 100644 --- a/ext/vpx/gstvp9enc.c +++ b/ext/vpx/gstvp9enc.c @@ -111,10 +111,10 @@ gst_vp9_enc_class_init (GstVP9EncClass * klass) element_class = GST_ELEMENT_CLASS (klass); vpx_encoder_class = GST_VPX_ENC_CLASS (klass); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_vp9_enc_src_template)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_vp9_enc_sink_template)); + gst_element_class_add_static_pad_template (element_class, + &gst_vp9_enc_src_template); + gst_element_class_add_static_pad_template (element_class, + &gst_vp9_enc_sink_template); gst_element_class_set_static_metadata (element_class, "On2 VP9 Encoder", diff --git a/ext/wavpack/gstwavpackdec.c b/ext/wavpack/gstwavpackdec.c index dd449a2647..7cce543226 100644 --- a/ext/wavpack/gstwavpackdec.c +++ b/ext/wavpack/gstwavpackdec.c @@ -105,10 +105,8 @@ gst_wavpack_dec_class_init (GstWavpackDecClass * klass) GstElementClass *element_class = (GstElementClass *) (klass); GstAudioDecoderClass *base_class = (GstAudioDecoderClass *) (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_static_metadata (element_class, "Wavpack audio decoder", "Codec/Decoder/Audio", "Decodes Wavpack audio data", diff --git a/ext/wavpack/gstwavpackenc.c b/ext/wavpack/gstwavpackenc.c index 95a8e8f569..5d6205cadd 100644 --- a/ext/wavpack/gstwavpackenc.c +++ b/ext/wavpack/gstwavpackenc.c @@ -209,12 +209,9 @@ gst_wavpack_enc_class_init (GstWavpackEncClass * klass) GstAudioEncoderClass *base_class = (GstAudioEncoderClass *) (klass); /* add pad templates */ - 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_pad_template (element_class, - gst_static_pad_template_get (&wvcsrc_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_add_static_pad_template (element_class, &wvcsrc_factory); /* set element details */ gst_element_class_set_static_metadata (element_class, "Wavpack audio encoder", diff --git a/gst/alpha/gstalpha.c b/gst/alpha/gstalpha.c index 839b8db239..82ad98167e 100644 --- a/gst/alpha/gstalpha.c +++ b/gst/alpha/gstalpha.c @@ -273,10 +273,10 @@ gst_alpha_class_init (GstAlphaClass * klass) "Edward Hervey \n" "Jan Schmidt "); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_alpha_sink_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_alpha_src_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_alpha_sink_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_alpha_src_template); btrans_class->before_transform = GST_DEBUG_FUNCPTR (gst_alpha_before_transform); diff --git a/gst/alpha/gstalphacolor.c b/gst/alpha/gstalphacolor.c index 99676776e4..e082e74a87 100644 --- a/gst/alpha/gstalphacolor.c +++ b/gst/alpha/gstalphacolor.c @@ -85,10 +85,8 @@ gst_alpha_color_class_init (GstAlphaColorClass * klass) "ARGB from/to AYUV colorspace conversion preserving the alpha channel", "Wim Taymans "); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&sink_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&src_template)); + gst_element_class_add_static_pad_template (gstelement_class, &sink_template); + gst_element_class_add_static_pad_template (gstelement_class, &src_template); gstbasetransform_class->transform_caps = GST_DEBUG_FUNCPTR (gst_alpha_color_transform_caps); diff --git a/gst/apetag/gstapedemux.c b/gst/apetag/gstapedemux.c index be0b0e5bbb..b3e62894f0 100644 --- a/gst/apetag/gstapedemux.c +++ b/gst/apetag/gstapedemux.c @@ -91,8 +91,7 @@ gst_ape_demux_class_init (GstApeDemuxClass * klass) "Read and output APE tags while demuxing the contents", "Tim-Philipp Müller "); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&sink_factory)); + gst_element_class_add_static_pad_template (element_class, &sink_factory); tagdemux_class->identify_tag = GST_DEBUG_FUNCPTR (gst_ape_demux_identify_tag); tagdemux_class->parse_tag = GST_DEBUG_FUNCPTR (gst_ape_demux_parse_tag); diff --git a/gst/audiofx/audiopanorama.c b/gst/audiofx/audiopanorama.c index 330e049434..b901464aed 100644 --- a/gst/audiofx/audiopanorama.c +++ b/gst/audiofx/audiopanorama.c @@ -199,10 +199,8 @@ gst_audio_panorama_class_init (GstAudioPanoramaClass * klass) "Positions audio streams in the stereo panorama", "Stefan Kost "); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&src_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&sink_template)); + gst_element_class_add_static_pad_template (gstelement_class, &src_template); + gst_element_class_add_static_pad_template (gstelement_class, &sink_template); GST_BASE_TRANSFORM_CLASS (klass)->get_unit_size = GST_DEBUG_FUNCPTR (gst_audio_panorama_get_unit_size); diff --git a/gst/audiofx/gstscaletempo.c b/gst/audiofx/gstscaletempo.c index f859feeefe..217ce4eb5a 100644 --- a/gst/audiofx/gstscaletempo.c +++ b/gst/audiofx/gstscaletempo.c @@ -859,10 +859,8 @@ gst_scaletempo_class_init (GstScaletempoClass * klass) "Length in milliseconds to search for best overlap position", 0, 500, 14, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&src_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&sink_template)); + gst_element_class_add_static_pad_template (gstelement_class, &src_template); + gst_element_class_add_static_pad_template (gstelement_class, &sink_template); gst_element_class_set_static_metadata (gstelement_class, "Scaletempo", "Filter/Effect/Rate", "Sync audio tempo with playback rate", diff --git a/gst/audioparsers/gstaacparse.c b/gst/audioparsers/gstaacparse.c index 982d2428ec..a23a0a9a76 100644 --- a/gst/audioparsers/gstaacparse.c +++ b/gst/audioparsers/gstaacparse.c @@ -114,10 +114,8 @@ gst_aac_parse_class_init (GstAacParseClass * klass) GST_DEBUG_CATEGORY_INIT (aacparse_debug, "aacparse", 0, "AAC audio stream parser"); - 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_static_metadata (element_class, "AAC audio stream parser", "Codec/Parser/Audio", diff --git a/gst/audioparsers/gstac3parse.c b/gst/audioparsers/gstac3parse.c index 875f9cb1b4..ae750389c0 100644 --- a/gst/audioparsers/gstac3parse.c +++ b/gst/audioparsers/gstac3parse.c @@ -186,10 +186,8 @@ gst_ac3_parse_class_init (GstAc3ParseClass * klass) object_class->finalize = gst_ac3_parse_finalize; - 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_static_metadata (element_class, "AC3 audio stream parser", "Codec/Parser/Converter/Audio", diff --git a/gst/audioparsers/gstamrparse.c b/gst/audioparsers/gstamrparse.c index 557afc9bfd..5bc84d4d55 100644 --- a/gst/audioparsers/gstamrparse.c +++ b/gst/audioparsers/gstamrparse.c @@ -100,10 +100,8 @@ gst_amr_parse_class_init (GstAmrParseClass * klass) GST_DEBUG_CATEGORY_INIT (amrparse_debug, "amrparse", 0, "AMR-NB audio stream parser"); - 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_static_metadata (element_class, "AMR audio stream parser", "Codec/Parser/Audio", diff --git a/gst/audioparsers/gstdcaparse.c b/gst/audioparsers/gstdcaparse.c index 380932381f..dfa5621617 100644 --- a/gst/audioparsers/gstdcaparse.c +++ b/gst/audioparsers/gstdcaparse.c @@ -106,10 +106,8 @@ gst_dca_parse_class_init (GstDcaParseClass * klass) parse_class->get_sink_caps = GST_DEBUG_FUNCPTR (gst_dca_parse_get_sink_caps); parse_class->set_sink_caps = GST_DEBUG_FUNCPTR (gst_dca_parse_set_sink_caps); - 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_static_metadata (element_class, "DTS Coherent Acoustics audio stream parser", "Codec/Parser/Audio", diff --git a/gst/audioparsers/gstflacparse.c b/gst/audioparsers/gstflacparse.c index 34e1e5e664..4a36137f73 100644 --- a/gst/audioparsers/gstflacparse.c +++ b/gst/audioparsers/gstflacparse.c @@ -247,10 +247,8 @@ gst_flac_parse_class_init (GstFlacParseClass * klass) baseparse_class->get_sink_caps = GST_DEBUG_FUNCPTR (gst_flac_parse_get_sink_caps); - 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_static_metadata (element_class, "FLAC audio parser", "Codec/Parser/Audio", diff --git a/gst/audioparsers/gstmpegaudioparse.c b/gst/audioparsers/gstmpegaudioparse.c index 1a5313af8d..14329731ec 100644 --- a/gst/audioparsers/gstmpegaudioparse.c +++ b/gst/audioparsers/gstmpegaudioparse.c @@ -177,10 +177,8 @@ gst_mpeg_audio_parse_class_init (GstMpegAudioParseClass * klass) g_type_class_ref (GST_TYPE_MPEG_AUDIO_CHANNEL_MODE); - 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_static_metadata (element_class, "MPEG1 Audio Parser", "Codec/Parser/Audio", diff --git a/gst/audioparsers/gstsbcparse.c b/gst/audioparsers/gstsbcparse.c index f7374f509e..12c39d95e8 100644 --- a/gst/audioparsers/gstsbcparse.c +++ b/gst/audioparsers/gstsbcparse.c @@ -98,10 +98,8 @@ gst_sbc_parse_class_init (GstSbcParseClass * klass) baseparse_class->get_sink_caps = GST_DEBUG_FUNCPTR (gst_sbc_parse_get_sink_caps); - 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_static_metadata (element_class, "SBC audio parser", "Codec/Parser/Audio", "Parses an SBC bluetooth audio stream", diff --git a/gst/audioparsers/gstwavpackparse.c b/gst/audioparsers/gstwavpackparse.c index ce85c5b60c..3e1d19c94f 100644 --- a/gst/audioparsers/gstwavpackparse.c +++ b/gst/audioparsers/gstwavpackparse.c @@ -98,10 +98,8 @@ gst_wavpack_parse_class_init (GstWavpackParseClass * klass) parse_class->pre_push_frame = GST_DEBUG_FUNCPTR (gst_wavpack_parse_pre_push_frame); - 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_static_metadata (element_class, "Wavpack audio stream parser", "Codec/Parser/Audio", diff --git a/gst/auparse/gstauparse.c b/gst/auparse/gstauparse.c index 6e6d929d18..db5b68456b 100644 --- a/gst/auparse/gstauparse.c +++ b/gst/auparse/gstauparse.c @@ -118,10 +118,8 @@ gst_au_parse_class_init (GstAuParseClass * klass) gstelement_class->change_state = GST_DEBUG_FUNCPTR (gst_au_parse_change_state); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&sink_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&src_template)); + gst_element_class_add_static_pad_template (gstelement_class, &sink_template); + gst_element_class_add_static_pad_template (gstelement_class, &src_template); gst_element_class_set_static_metadata (gstelement_class, "AU audio demuxer", "Codec/Demuxer/Audio", diff --git a/gst/autodetect/gstautoaudiosink.c b/gst/autodetect/gstautoaudiosink.c index 1dfc4cebdb..1edf6d8798 100644 --- a/gst/autodetect/gstautoaudiosink.c +++ b/gst/autodetect/gstautoaudiosink.c @@ -81,8 +81,7 @@ gst_auto_audio_sink_class_init (GstAutoAudioSinkClass * klass) "Timestamp offset in nanoseconds", G_MININT64, G_MAXINT64, DEFAULT_TS_OFFSET, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); - gst_element_class_add_pad_template (eklass, - gst_static_pad_template_get (&sink_template)); + gst_element_class_add_static_pad_template (eklass, &sink_template); gst_element_class_set_static_metadata (eklass, "Auto audio sink", "Sink/Audio", "Wrapper audio sink for automatically detected audio sink", diff --git a/gst/autodetect/gstautoaudiosrc.c b/gst/autodetect/gstautoaudiosrc.c index 2859386cf7..8adda00d58 100644 --- a/gst/autodetect/gstautoaudiosrc.c +++ b/gst/autodetect/gstautoaudiosrc.c @@ -75,8 +75,7 @@ gst_auto_audio_src_class_init (GstAutoAudioSrcClass * klass) GstAutoDetectClass *autoclass = GST_AUTO_DETECT_CLASS (klass); GstElementClass *eklass = GST_ELEMENT_CLASS (klass); - gst_element_class_add_pad_template (eklass, - gst_static_pad_template_get (&src_template)); + gst_element_class_add_static_pad_template (eklass, &src_template); gst_element_class_set_static_metadata (eklass, "Auto audio source", "Source/Audio", "Wrapper audio source for automatically detected audio source", diff --git a/gst/autodetect/gstautovideosink.c b/gst/autodetect/gstautovideosink.c index 6eaee6600c..e4fd91ebd4 100644 --- a/gst/autodetect/gstautovideosink.c +++ b/gst/autodetect/gstautovideosink.c @@ -81,8 +81,7 @@ gst_auto_video_sink_class_init (GstAutoVideoSinkClass * klass) "Timestamp offset in nanoseconds", G_MININT64, G_MAXINT64, DEFAULT_TS_OFFSET, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); - gst_element_class_add_pad_template (eklass, - gst_static_pad_template_get (&sink_template)); + gst_element_class_add_static_pad_template (eklass, &sink_template); gst_element_class_set_static_metadata (eklass, "Auto video sink", "Sink/Video", "Wrapper video sink for automatically detected video sink", diff --git a/gst/autodetect/gstautovideosrc.c b/gst/autodetect/gstautovideosrc.c index 854c641d87..2f43431441 100644 --- a/gst/autodetect/gstautovideosrc.c +++ b/gst/autodetect/gstautovideosrc.c @@ -74,8 +74,7 @@ gst_auto_video_src_class_init (GstAutoVideoSrcClass * klass) GstAutoDetectClass *autoclass = GST_AUTO_DETECT_CLASS (klass); GstElementClass *eklass = GST_ELEMENT_CLASS (klass); - gst_element_class_add_pad_template (eklass, - gst_static_pad_template_get (&src_template)); + gst_element_class_add_static_pad_template (eklass, &src_template); gst_element_class_set_static_metadata (eklass, "Auto video source", "Source/Video", "Wrapper video source for automatically detected video source", diff --git a/gst/avi/gstavidemux.c b/gst/avi/gstavidemux.c index d07a30723c..92cb2b428c 100644 --- a/gst/avi/gstavidemux.c +++ b/gst/avi/gstavidemux.c @@ -170,8 +170,7 @@ gst_avi_demux_class_init (GstAviDemuxClass * klass) gst_element_class_add_pad_template (gstelement_class, videosrctempl); gst_element_class_add_pad_template (gstelement_class, subsrctempl); gst_element_class_add_pad_template (gstelement_class, subpicsrctempl); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&sink_templ)); + gst_element_class_add_static_pad_template (gstelement_class, &sink_templ); gst_element_class_set_static_metadata (gstelement_class, "Avi demuxer", "Codec/Demuxer", diff --git a/gst/avi/gstavimux.c b/gst/avi/gstavimux.c index ddfac1309f..222d863d87 100644 --- a/gst/avi/gstavimux.c +++ b/gst/avi/gstavimux.c @@ -252,12 +252,11 @@ gst_avi_mux_class_init (GstAviMuxClass * klass) gstelement_class->release_pad = GST_DEBUG_FUNCPTR (gst_avi_mux_release_pad); gstelement_class->change_state = GST_DEBUG_FUNCPTR (gst_avi_mux_change_state); - 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 (&audio_sink_factory)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&video_sink_factory)); + gst_element_class_add_static_pad_template (gstelement_class, &src_factory); + gst_element_class_add_static_pad_template (gstelement_class, + &audio_sink_factory); + gst_element_class_add_static_pad_template (gstelement_class, + &video_sink_factory); gst_element_class_set_static_metadata (gstelement_class, "Avi muxer", "Codec/Muxer", diff --git a/gst/avi/gstavisubtitle.c b/gst/avi/gstavisubtitle.c index a54ef66f24..25c9cca204 100644 --- a/gst/avi/gstavisubtitle.c +++ b/gst/avi/gstavisubtitle.c @@ -327,10 +327,8 @@ gst_avi_subtitle_class_init (GstAviSubtitleClass * klass) gstelement_class->send_event = GST_DEBUG_FUNCPTR (gst_avi_subtitle_send_event); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&sink_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&src_template)); + gst_element_class_add_static_pad_template (gstelement_class, &sink_template); + gst_element_class_add_static_pad_template (gstelement_class, &src_template); gst_element_class_set_static_metadata (gstelement_class, "Avi subtitle parser", "Codec/Parser/Subtitle", diff --git a/gst/cutter/gstcutter.c b/gst/cutter/gstcutter.c index 6d41ef7392..b13ddf6c3a 100644 --- a/gst/cutter/gstcutter.c +++ b/gst/cutter/gstcutter.c @@ -147,13 +147,12 @@ gst_cutter_class_init (GstCutterClass * klass) GST_DEBUG_CATEGORY_INIT (cutter_debug, "cutter", 0, "Audio cutting"); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&cutter_src_factory)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&cutter_sink_factory)); + gst_element_class_add_static_pad_template (element_class, + &cutter_src_factory); + gst_element_class_add_static_pad_template (element_class, + &cutter_sink_factory); gst_element_class_set_static_metadata (element_class, "Audio cutter", - "Filter/Editor/Audio", - "Audio Cutter to split audio into non-silent bits", + "Filter/Editor/Audio", "Audio Cutter to split audio into non-silent bits", "Thomas Vander Stichele "); element_class->change_state = gst_cutter_change_state; } diff --git a/gst/debugutils/breakmydata.c b/gst/debugutils/breakmydata.c index 7fe01b60c4..3722d30f54 100644 --- a/gst/debugutils/breakmydata.c +++ b/gst/debugutils/breakmydata.c @@ -138,10 +138,10 @@ gst_break_my_data_class_init (GstBreakMyDataClass * klass) "probability for each byte in the buffer to be changed", 0.0, 1.0, 0.0, G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&bmd_sink_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&bmd_src_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &bmd_sink_template); + gst_element_class_add_static_pad_template (gstelement_class, + &bmd_src_template); gst_element_class_set_static_metadata (gstelement_class, "Break my data", "Testing", diff --git a/gst/debugutils/cpureport.c b/gst/debugutils/cpureport.c index 670794d71a..f61c38e390 100644 --- a/gst/debugutils/cpureport.c +++ b/gst/debugutils/cpureport.c @@ -72,10 +72,10 @@ gst_cpu_report_class_init (GstCpuReportClass * g_class) gobject_class->finalize = gst_cpu_report_finalize; - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&cpu_report_sink_template)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&cpu_report_src_template)); + gst_element_class_add_static_pad_template (element_class, + &cpu_report_sink_template); + gst_element_class_add_static_pad_template (element_class, + &cpu_report_src_template); gst_element_class_set_static_metadata (element_class, "CPU report", "Testing", diff --git a/gst/debugutils/gstcapsdebug.c b/gst/debugutils/gstcapsdebug.c index a27447bd00..c2bc551532 100644 --- a/gst/debugutils/gstcapsdebug.c +++ b/gst/debugutils/gstcapsdebug.c @@ -77,10 +77,10 @@ gst_caps_debug_class_init (GstCapsDebugClass * klass) GST_DEBUG_CATEGORY_INIT (gst_caps_debug_debug, "capsdebug", 0, "debug category for capsdebug element"); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_caps_debug_src_template)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_caps_debug_sink_template)); + gst_element_class_add_static_pad_template (element_class, + &gst_caps_debug_src_template); + gst_element_class_add_static_pad_template (element_class, + &gst_caps_debug_sink_template); gst_element_class_set_static_metadata (element_class, "Caps debug", "Generic", "Debug caps negotiation", "David Schleef "); diff --git a/gst/debugutils/gstcapssetter.c b/gst/debugutils/gstcapssetter.c index 187adb73d6..6b3db76d83 100644 --- a/gst/debugutils/gstcapssetter.c +++ b/gst/debugutils/gstcapssetter.c @@ -136,10 +136,10 @@ gst_caps_setter_class_init (GstCapsSetterClass * g_class) "Set/merge caps on stream", "Mark Nauwelaerts "); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_caps_setter_sink_template)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_caps_setter_src_template)); + gst_element_class_add_static_pad_template (element_class, + &gst_caps_setter_sink_template); + gst_element_class_add_static_pad_template (element_class, + &gst_caps_setter_src_template); trans_class->transform_size = GST_DEBUG_FUNCPTR (gst_caps_setter_transform_size); diff --git a/gst/debugutils/gstnavigationtest.c b/gst/debugutils/gstnavigationtest.c index de98900bea..532fe13182 100644 --- a/gst/debugutils/gstnavigationtest.c +++ b/gst/debugutils/gstnavigationtest.c @@ -242,10 +242,10 @@ gst_navigationtest_class_init (GstNavigationtestClass * klass) "Handle navigation events showing a black square following mouse pointer", "David Schleef "); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_navigationtest_sink_template)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_navigationtest_src_template)); + gst_element_class_add_static_pad_template (element_class, + &gst_navigationtest_sink_template); + gst_element_class_add_static_pad_template (element_class, + &gst_navigationtest_src_template); trans_class->src_event = GST_DEBUG_FUNCPTR (gst_navigationtest_src_event); diff --git a/gst/debugutils/gstnavseek.c b/gst/debugutils/gstnavseek.c index a38b608f4e..fd9386c643 100644 --- a/gst/debugutils/gstnavseek.c +++ b/gst/debugutils/gstnavseek.c @@ -84,10 +84,10 @@ gst_navseek_class_init (GstNavSeekClass * klass) "Time in seconds to seek by", 0.0, G_MAXDOUBLE, 5.0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&navseek_sink_template)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&navseek_src_template)); + gst_element_class_add_static_pad_template (element_class, + &navseek_sink_template); + gst_element_class_add_static_pad_template (element_class, + &navseek_src_template); gst_element_class_set_static_metadata (element_class, "Seek based on left-right arrows", "Filter/Video", diff --git a/gst/debugutils/gstpushfilesrc.c b/gst/debugutils/gstpushfilesrc.c index ba9b358f84..c60accb099 100644 --- a/gst/debugutils/gstpushfilesrc.c +++ b/gst/debugutils/gstpushfilesrc.c @@ -152,8 +152,7 @@ gst_push_file_src_class_init (GstPushFileSrcClass * g_class) "Applied rate to use in TIME SEGMENT", G_MINDOUBLE, G_MAXDOUBLE, DEFAULT_APPLIED_RATE, G_PARAM_READWRITE)); - 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_static_metadata (element_class, "Push File Source", "Testing", diff --git a/gst/debugutils/gsttaginject.c b/gst/debugutils/gsttaginject.c index 1430d2204f..abdb79775d 100644 --- a/gst/debugutils/gsttaginject.c +++ b/gst/debugutils/gsttaginject.c @@ -116,10 +116,8 @@ gst_tag_inject_class_init (GstTagInjectClass * klass) gst_element_class_set_static_metadata (gstelement_class, "TagInject", "Generic", "inject metadata tags", "Stefan Kost "); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&srctemplate)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&sinktemplate)); + gst_element_class_add_static_pad_template (gstelement_class, &srctemplate); + gst_element_class_add_static_pad_template (gstelement_class, &sinktemplate); gstbasetrans_class->transform_ip = GST_DEBUG_FUNCPTR (gst_tag_inject_transform_ip); diff --git a/gst/debugutils/progressreport.c b/gst/debugutils/progressreport.c index 1426ca832f..906bf0f057 100644 --- a/gst/debugutils/progressreport.c +++ b/gst/debugutils/progressreport.c @@ -165,10 +165,10 @@ gst_progress_report_class_init (GstProgressReportClass * g_class) "Format to use for the querying", DEFAULT_FORMAT, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&progress_report_sink_template)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&progress_report_src_template)); + gst_element_class_add_static_pad_template (element_class, + &progress_report_sink_template); + gst_element_class_add_static_pad_template (element_class, + &progress_report_src_template); gst_element_class_set_static_metadata (element_class, "Progress report", "Testing", diff --git a/gst/debugutils/rndbuffersize.c b/gst/debugutils/rndbuffersize.c index 9ebd12c5d0..a5f1d69d30 100644 --- a/gst/debugutils/rndbuffersize.c +++ b/gst/debugutils/rndbuffersize.c @@ -120,10 +120,8 @@ gst_rnd_buffer_size_class_init (GstRndBufferSizeClass * klass) gobject_class->get_property = gst_rnd_buffer_size_get_property; gobject_class->finalize = gst_rnd_buffer_size_finalize; - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&sink_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&src_template)); + gst_element_class_add_static_pad_template (gstelement_class, &sink_template); + gst_element_class_add_static_pad_template (gstelement_class, &src_template); gst_element_class_set_static_metadata (gstelement_class, "Random buffer size", "Testing", "pull random sized buffers", diff --git a/gst/debugutils/testplugin.c b/gst/debugutils/testplugin.c index 7d104cd40e..ef9ca0fa12 100644 --- a/gst/debugutils/testplugin.c +++ b/gst/debugutils/testplugin.c @@ -112,8 +112,7 @@ gst_test_class_init (GstTestClass * klass) g_object_class_install_property (object_class, 2 * i + 2, spec); } - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&sinktemplate)); + gst_element_class_add_static_pad_template (gstelement_class, &sinktemplate); gst_element_class_set_static_metadata (gstelement_class, "Test plugin", "Testing", "perform a number of tests", "Benjamin Otte "); diff --git a/gst/deinterlace/gstdeinterlace.c b/gst/deinterlace/gstdeinterlace.c index 644a75aee5..6ef5c610a4 100644 --- a/gst/deinterlace/gstdeinterlace.c +++ b/gst/deinterlace/gstdeinterlace.c @@ -486,10 +486,8 @@ gst_deinterlace_class_init (GstDeinterlaceClass * klass) GstElementClass *element_class = (GstElementClass *) klass; - 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); gst_element_class_set_static_metadata (element_class, "Deinterlacer", diff --git a/gst/dtmf/gstdtmfsrc.c b/gst/dtmf/gstdtmfsrc.c index 49a09e6ff7..88f0f08243 100644 --- a/gst/dtmf/gstdtmfsrc.c +++ b/gst/dtmf/gstdtmfsrc.c @@ -251,8 +251,8 @@ gst_dtmf_src_class_init (GstDTMFSrcClass * klass) GST_DEBUG_CATEGORY_INIT (gst_dtmf_src_debug, "dtmfsrc", 0, "dtmfsrc element"); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_dtmf_src_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_dtmf_src_template); gst_element_class_set_static_metadata (gstelement_class, "DTMF tone generator", "Source/Audio", "Generates DTMF tones", diff --git a/gst/dtmf/gstrtpdtmfdepay.c b/gst/dtmf/gstrtpdtmfdepay.c index f625ac5ade..b7827be7ac 100644 --- a/gst/dtmf/gstrtpdtmfdepay.c +++ b/gst/dtmf/gstrtpdtmfdepay.c @@ -212,10 +212,10 @@ gst_rtp_dtmf_depay_class_init (GstRtpDTMFDepayClass * klass) gstelement_class = GST_ELEMENT_CLASS (klass); gstrtpbasedepayload_class = GST_RTP_BASE_DEPAYLOAD_CLASS (klass); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_dtmf_depay_src_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_dtmf_depay_sink_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_dtmf_depay_src_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_dtmf_depay_sink_template); GST_DEBUG_CATEGORY_INIT (gst_rtp_dtmf_depay_debug, "rtpdtmfdepay", 0, "rtpdtmfdepay element"); diff --git a/gst/dtmf/gstrtpdtmfsrc.c b/gst/dtmf/gstrtpdtmfsrc.c index 373a4802b9..9c783d392a 100644 --- a/gst/dtmf/gstrtpdtmfsrc.c +++ b/gst/dtmf/gstrtpdtmfsrc.c @@ -213,8 +213,8 @@ gst_rtp_dtmf_src_class_init (GstRTPDTMFSrcClass * klass) GST_DEBUG_CATEGORY_INIT (gst_rtp_dtmf_src_debug, "rtpdtmfsrc", 0, "rtpdtmfsrc element"); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_dtmf_src_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_dtmf_src_template); gst_element_class_set_static_metadata (gstelement_class, "RTP DTMF packet generator", "Source/Network", diff --git a/gst/effectv/gstaging.c b/gst/effectv/gstaging.c index 81219038e7..a91b63b32f 100644 --- a/gst/effectv/gstaging.c +++ b/gst/effectv/gstaging.c @@ -381,10 +381,10 @@ gst_agingtv_class_init (GstAgingTVClass * klass) "AgingTV adds age to video input using scratches and dust", "Sam Lantinga "); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_agingtv_sink_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_agingtv_src_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_agingtv_sink_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_agingtv_src_template); trans_class->start = GST_DEBUG_FUNCPTR (gst_agingtv_start); diff --git a/gst/effectv/gstdice.c b/gst/effectv/gstdice.c index 7c90b660a4..5c6e111075 100644 --- a/gst/effectv/gstdice.c +++ b/gst/effectv/gstdice.c @@ -294,10 +294,10 @@ gst_dicetv_class_init (GstDiceTVClass * klass) "'Dices' the screen up into many small squares", "Wim Taymans "); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_dicetv_sink_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_dicetv_src_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_dicetv_sink_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_dicetv_src_template); vfilter_class->set_info = GST_DEBUG_FUNCPTR (gst_dicetv_set_info); vfilter_class->transform_frame = diff --git a/gst/effectv/gstedge.c b/gst/effectv/gstedge.c index d7fe89bab9..07feb990b7 100644 --- a/gst/effectv/gstedge.c +++ b/gst/effectv/gstedge.c @@ -236,10 +236,10 @@ gst_edgetv_class_init (GstEdgeTVClass * klass) "Filter/Effect/Video", "Apply edge detect on video", "Wim Taymans "); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_edgetv_sink_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_edgetv_src_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_edgetv_sink_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_edgetv_src_template); trans_class->start = GST_DEBUG_FUNCPTR (gst_edgetv_start); diff --git a/gst/effectv/gstop.c b/gst/effectv/gstop.c index 82da702d42..283878f8cf 100644 --- a/gst/effectv/gstop.c +++ b/gst/effectv/gstop.c @@ -396,10 +396,10 @@ gst_optv_class_init (GstOpTVClass * klass) "FUKUCHI, Kentarou , " "Sebastian Dröge "); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_optv_sink_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_optv_src_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_optv_sink_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_optv_src_template); trans_class->start = GST_DEBUG_FUNCPTR (gst_optv_start); diff --git a/gst/effectv/gstquark.c b/gst/effectv/gstquark.c index 098e20c5a5..12ade750c1 100644 --- a/gst/effectv/gstquark.c +++ b/gst/effectv/gstquark.c @@ -279,10 +279,10 @@ gst_quarktv_class_init (GstQuarkTVClass * klass) "Filter/Effect/Video", "Motion dissolver", "FUKUCHI, Kentarou "); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_quarktv_sink_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_quarktv_src_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_quarktv_sink_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_quarktv_src_template); trans_class->start = GST_DEBUG_FUNCPTR (gst_quarktv_start); diff --git a/gst/effectv/gstradioac.c b/gst/effectv/gstradioac.c index 1af42349b6..b663684c48 100644 --- a/gst/effectv/gstradioac.c +++ b/gst/effectv/gstradioac.c @@ -598,10 +598,10 @@ gst_radioactv_class_init (GstRadioacTVClass * klass) "FUKUCHI, Kentarou , " "Sebastian Dröge "); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_radioactv_sink_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_radioactv_src_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_radioactv_sink_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_radioactv_src_template); trans_class->start = GST_DEBUG_FUNCPTR (gst_radioactv_start); diff --git a/gst/effectv/gstrev.c b/gst/effectv/gstrev.c index 003d36a605..2f95950fb8 100644 --- a/gst/effectv/gstrev.c +++ b/gst/effectv/gstrev.c @@ -230,10 +230,10 @@ gst_revtv_class_init (GstRevTVClass * klass) "A video waveform monitor for each line of video processed", "Wim Taymans "); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_revtv_sink_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_revtv_src_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_revtv_sink_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_revtv_src_template); vfilter_class->transform_frame = GST_DEBUG_FUNCPTR (gst_revtv_transform_frame); diff --git a/gst/effectv/gstripple.c b/gst/effectv/gstripple.c index f81e4d73b2..a4ac6f79e3 100644 --- a/gst/effectv/gstripple.c +++ b/gst/effectv/gstripple.c @@ -586,10 +586,10 @@ gst_rippletv_class_init (GstRippleTVClass * klass) "FUKUCHI, Kentarou , " "Sebastian Dröge "); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rippletv_sink_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rippletv_src_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rippletv_sink_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rippletv_src_template); trans_class->start = GST_DEBUG_FUNCPTR (gst_rippletv_start); diff --git a/gst/effectv/gstshagadelic.c b/gst/effectv/gstshagadelic.c index 2564cb330f..721a1513a1 100644 --- a/gst/effectv/gstshagadelic.c +++ b/gst/effectv/gstshagadelic.c @@ -238,10 +238,10 @@ gst_shagadelictv_class_init (GstShagadelicTVClass * klass) "Oh behave, ShagedelicTV makes images shagadelic!", "Wim Taymans "); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_shagadelictv_sink_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_shagadelictv_src_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_shagadelictv_sink_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_shagadelictv_src_template); vfilter_class->set_info = GST_DEBUG_FUNCPTR (gst_shagadelictv_set_info); vfilter_class->transform_frame = diff --git a/gst/effectv/gststreak.c b/gst/effectv/gststreak.c index be7149c952..44ed1507db 100644 --- a/gst/effectv/gststreak.c +++ b/gst/effectv/gststreak.c @@ -246,10 +246,10 @@ gst_streaktv_class_init (GstStreakTVClass * klass) "FUKUCHI, Kentarou , " "Sebastian Dröge "); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_streaktv_sink_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_streaktv_src_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_streaktv_sink_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_streaktv_src_template); trans_class->start = GST_DEBUG_FUNCPTR (gst_streaktv_start); diff --git a/gst/effectv/gstvertigo.c b/gst/effectv/gstvertigo.c index 3e575cbb45..f49a7d2ee4 100644 --- a/gst/effectv/gstvertigo.c +++ b/gst/effectv/gstvertigo.c @@ -305,10 +305,10 @@ gst_vertigotv_class_init (GstVertigoTVClass * klass) "A loopback alpha blending effector with rotating and scaling", "Wim Taymans "); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_vertigotv_sink_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_vertigotv_src_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_vertigotv_sink_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_vertigotv_src_template); trans_class->start = GST_DEBUG_FUNCPTR (gst_vertigotv_start); diff --git a/gst/effectv/gstwarp.c b/gst/effectv/gstwarp.c index 327c9de52a..841ed8ccbc 100644 --- a/gst/effectv/gstwarp.c +++ b/gst/effectv/gstwarp.c @@ -245,10 +245,10 @@ gst_warptv_class_init (GstWarpTVClass * klass) "WarpTV does realtime goo'ing of the video input", "Sam Lantinga "); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_warptv_sink_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_warptv_src_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_warptv_sink_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_warptv_src_template); trans_class->start = GST_DEBUG_FUNCPTR (gst_warptv_start); diff --git a/gst/flv/gstflvdemux.c b/gst/flv/gstflvdemux.c index 70e7fba36e..40edb99ff1 100644 --- a/gst/flv/gstflvdemux.c +++ b/gst/flv/gstflvdemux.c @@ -3538,15 +3538,14 @@ gst_flv_demux_class_init (GstFlvDemuxClass * klass) gstelement_class->get_index = GST_DEBUG_FUNCPTR (gst_flv_demux_get_index); #endif - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&flv_sink_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&audio_src_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&video_src_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &flv_sink_template); + gst_element_class_add_static_pad_template (gstelement_class, + &audio_src_template); + gst_element_class_add_static_pad_template (gstelement_class, + &video_src_template); gst_element_class_set_static_metadata (gstelement_class, "FLV Demuxer", - "Codec/Demuxer", - "Demux FLV feeds into digital streams", + "Codec/Demuxer", "Demux FLV feeds into digital streams", "Julien Moutte "); } diff --git a/gst/flv/gstflvmux.c b/gst/flv/gstflvmux.c index 48f8b6604c..40850aa68a 100644 --- a/gst/flv/gstflvmux.c +++ b/gst/flv/gstflvmux.c @@ -186,12 +186,11 @@ gst_flv_mux_class_init (GstFlvMuxClass * klass) GST_DEBUG_FUNCPTR (gst_flv_mux_request_new_pad); gstelement_class->release_pad = GST_DEBUG_FUNCPTR (gst_flv_mux_release_pad); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&videosink_templ)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&audiosink_templ)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&src_templ)); + gst_element_class_add_static_pad_template (gstelement_class, + &videosink_templ); + gst_element_class_add_static_pad_template (gstelement_class, + &audiosink_templ); + gst_element_class_add_static_pad_template (gstelement_class, &src_templ); gst_element_class_set_static_metadata (gstelement_class, "FLV muxer", "Codec/Muxer", "Muxes video/audio streams into a FLV stream", diff --git a/gst/goom/gstgoom.c b/gst/goom/gstgoom.c index 7cb1bd84c1..dbbe941844 100644 --- a/gst/goom/gstgoom.c +++ b/gst/goom/gstgoom.c @@ -119,10 +119,8 @@ gst_goom_class_init (GstGoomClass * klass) "Visualization", "Takes frames of data and outputs video frames using the GOOM filter", "Wim Taymans "); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&sink_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&src_template)); + gst_element_class_add_static_pad_template (gstelement_class, &sink_template); + gst_element_class_add_static_pad_template (gstelement_class, &src_template); visualizer_class->setup = GST_DEBUG_FUNCPTR (gst_goom_setup); visualizer_class->render = GST_DEBUG_FUNCPTR (gst_goom_render); diff --git a/gst/goom2k1/gstgoom.c b/gst/goom2k1/gstgoom.c index 0c97e94225..cfbfcbc2f4 100644 --- a/gst/goom2k1/gstgoom.c +++ b/gst/goom2k1/gstgoom.c @@ -104,10 +104,8 @@ gst_goom2k1_class_init (GstGoom2k1Class * klass) "GOOM: what a GOOM! 2k1 edition", "Visualization", "Takes frames of data and outputs video frames using the GOOM 2k1 filter", "Wim Taymans "); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&sink_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&src_template)); + gst_element_class_add_static_pad_template (gstelement_class, &sink_template); + gst_element_class_add_static_pad_template (gstelement_class, &src_template); GST_DEBUG_CATEGORY_INIT (goom2k1_debug, "goom2k1", 0, "goom2k1 visualisation element"); diff --git a/gst/icydemux/gsticydemux.c b/gst/icydemux/gsticydemux.c index dade21bd68..dc0c266abc 100644 --- a/gst/icydemux/gsticydemux.c +++ b/gst/icydemux/gsticydemux.c @@ -103,10 +103,8 @@ gst_icydemux_class_init (GstICYDemuxClass * klass) gstelement_class->change_state = gst_icydemux_change_state; - 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); gst_element_class_set_static_metadata (gstelement_class, "ICY tag demuxer", "Codec/Demuxer/Metadata", diff --git a/gst/id3demux/gstid3demux.c b/gst/id3demux/gstid3demux.c index c67a6ff0bc..d491bb87bb 100644 --- a/gst/id3demux/gstid3demux.c +++ b/gst/id3demux/gstid3demux.c @@ -108,8 +108,7 @@ gst_id3demux_class_init (GstID3DemuxClass * klass) "and ID3v2 tags are present", DEFAULT_PREFER_V1, G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&sink_factory)); + gst_element_class_add_static_pad_template (gstelement_class, &sink_factory); gst_element_class_set_static_metadata (gstelement_class, "ID3 tag demuxer", "Codec/Demuxer/Metadata", diff --git a/gst/imagefreeze/gstimagefreeze.c b/gst/imagefreeze/gstimagefreeze.c index 8b1bfc5b13..42a14e60fe 100644 --- a/gst/imagefreeze/gstimagefreeze.c +++ b/gst/imagefreeze/gstimagefreeze.c @@ -101,10 +101,10 @@ gst_image_freeze_class_init (GstImageFreezeClass * klass) "Generates a still frame stream from an image", "Sebastian Dröge "); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&sink_pad_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&src_pad_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &sink_pad_template); + gst_element_class_add_static_pad_template (gstelement_class, + &src_pad_template); } static void diff --git a/gst/interleave/deinterleave.c b/gst/interleave/deinterleave.c index 81ebbc2ba5..0c2e50286e 100644 --- a/gst/interleave/deinterleave.c +++ b/gst/interleave/deinterleave.c @@ -175,10 +175,8 @@ gst_deinterleave_class_init (GstDeinterleaveClass * klass) "Andy Wingo , " "Iain , " "Sebastian Dröge "); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&sink_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&src_template)); + gst_element_class_add_static_pad_template (gstelement_class, &sink_template); + gst_element_class_add_static_pad_template (gstelement_class, &src_template); gstelement_class->change_state = gst_deinterleave_change_state; diff --git a/gst/interleave/interleave.c b/gst/interleave/interleave.c index 45d72f9f90..b2ac76e939 100644 --- a/gst/interleave/interleave.c +++ b/gst/interleave/interleave.c @@ -359,10 +359,8 @@ gst_interleave_class_init (GstInterleaveClass * klass) "Andy Wingo , " "Sebastian Dröge "); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&sink_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&src_template)); + gst_element_class_add_static_pad_template (gstelement_class, &sink_template); + gst_element_class_add_static_pad_template (gstelement_class, &src_template); /* Reference GstInterleavePad class to have the type registered from * a threadsafe context diff --git a/gst/isomp4/gstrtpxqtdepay.c b/gst/isomp4/gstrtpxqtdepay.c index 9116ccc0b1..8a3c60e64e 100644 --- a/gst/isomp4/gstrtpxqtdepay.c +++ b/gst/isomp4/gstrtpxqtdepay.c @@ -129,10 +129,10 @@ gst_rtp_xqt_depay_class_init (GstRtpXQTDepayClass * klass) GST_DEBUG_CATEGORY_INIT (rtpxqtdepay_debug, "rtpxqtdepay", 0, "QT Media RTP Depayloader"); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_xqt_depay_src_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_xqt_depay_sink_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_xqt_depay_src_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_xqt_depay_sink_template); gst_element_class_set_static_metadata (gstelement_class, "RTP packet depayloader", "Codec/Depayloader/Network", diff --git a/gst/isomp4/qtdemux.c b/gst/isomp4/qtdemux.c index fbd9f885fc..bf9869fb55 100644 --- a/gst/isomp4/qtdemux.c +++ b/gst/isomp4/qtdemux.c @@ -554,14 +554,14 @@ gst_qtdemux_class_init (GstQTDemuxClass * klass) gst_tag_register_musicbrainz_tags (); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_qtdemux_sink_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_qtdemux_videosrc_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_qtdemux_audiosrc_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_qtdemux_subsrc_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_qtdemux_sink_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_qtdemux_videosrc_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_qtdemux_audiosrc_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_qtdemux_subsrc_template); gst_element_class_set_static_metadata (gstelement_class, "QuickTime demuxer", "Codec/Demuxer", "Demultiplex a QuickTime file into audio and video streams", diff --git a/gst/law/alaw-decode.c b/gst/law/alaw-decode.c index 88df489ae6..bf6fcfecb6 100644 --- a/gst/law/alaw-decode.c +++ b/gst/law/alaw-decode.c @@ -203,10 +203,10 @@ gst_alaw_dec_class_init (GstALawDecClass * klass) GstElementClass *element_class = (GstElementClass *) klass; GstAudioDecoderClass *audiodec_class = GST_AUDIO_DECODER_CLASS (klass); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&alaw_dec_src_factory)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&alaw_dec_sink_factory)); + gst_element_class_add_static_pad_template (element_class, + &alaw_dec_src_factory); + gst_element_class_add_static_pad_template (element_class, + &alaw_dec_sink_factory); audiodec_class->start = GST_DEBUG_FUNCPTR (gst_alaw_dec_start); audiodec_class->set_format = GST_DEBUG_FUNCPTR (gst_alaw_dec_set_format); diff --git a/gst/law/alaw-encode.c b/gst/law/alaw-encode.c index ebee1920fe..ff17000a7a 100644 --- a/gst/law/alaw-encode.c +++ b/gst/law/alaw-encode.c @@ -408,10 +408,10 @@ gst_alaw_enc_class_init (GstALawEncClass * klass) audio_encoder_class->handle_frame = GST_DEBUG_FUNCPTR (gst_alaw_enc_handle_frame); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&alaw_enc_src_factory)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&alaw_enc_sink_factory)); + gst_element_class_add_static_pad_template (element_class, + &alaw_enc_src_factory); + gst_element_class_add_static_pad_template (element_class, + &alaw_enc_sink_factory); gst_element_class_set_static_metadata (element_class, "A Law audio encoder", "Codec/Encoder/Audio", diff --git a/gst/law/mulaw-decode.c b/gst/law/mulaw-decode.c index 4d463bcde8..912fb8cfe7 100644 --- a/gst/law/mulaw-decode.c +++ b/gst/law/mulaw-decode.c @@ -149,10 +149,10 @@ gst_mulawdec_class_init (GstMuLawDecClass * klass) GstElementClass *element_class = (GstElementClass *) klass; GstAudioDecoderClass *audiodec_class = GST_AUDIO_DECODER_CLASS (klass); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&mulaw_dec_src_factory)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&mulaw_dec_sink_factory)); + gst_element_class_add_static_pad_template (element_class, + &mulaw_dec_src_factory); + gst_element_class_add_static_pad_template (element_class, + &mulaw_dec_sink_factory); audiodec_class->start = GST_DEBUG_FUNCPTR (gst_mulawdec_start); diff --git a/gst/law/mulaw-encode.c b/gst/law/mulaw-encode.c index 2e0b14b967..b22ce0dbaf 100644 --- a/gst/law/mulaw-encode.c +++ b/gst/law/mulaw-encode.c @@ -193,10 +193,10 @@ gst_mulawenc_class_init (GstMuLawEncClass * klass) audio_encoder_class->handle_frame = GST_DEBUG_FUNCPTR (gst_mulawenc_handle_frame); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&mulaw_enc_src_factory)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&mulaw_enc_sink_factory)); + gst_element_class_add_static_pad_template (element_class, + &mulaw_enc_src_factory); + gst_element_class_add_static_pad_template (element_class, + &mulaw_enc_sink_factory); gst_element_class_set_static_metadata (element_class, "Mu Law audio encoder", "Codec/Encoder/Audio", diff --git a/gst/level/gstlevel.c b/gst/level/gstlevel.c index a8e41f0a91..aef6f57977 100644 --- a/gst/level/gstlevel.c +++ b/gst/level/gstlevel.c @@ -224,10 +224,10 @@ gst_level_class_init (GstLevelClass * klass) GST_DEBUG_CATEGORY_INIT (level_debug, "level", 0, "Level calculation"); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&sink_template_factory)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&src_template_factory)); + gst_element_class_add_static_pad_template (element_class, + &sink_template_factory); + gst_element_class_add_static_pad_template (element_class, + &src_template_factory); gst_element_class_set_static_metadata (element_class, "Level", "Filter/Analyzer/Audio", "RMS/Peak/Decaying Peak Level messager for audio/raw", diff --git a/gst/matroska/matroska-demux.c b/gst/matroska/matroska-demux.c index 391e274d05..c5fee777f3 100644 --- a/gst/matroska/matroska-demux.c +++ b/gst/matroska/matroska-demux.c @@ -227,14 +227,13 @@ gst_matroska_demux_class_init (GstMatroskaDemuxClass * klass) GST_DEBUG_FUNCPTR (gst_matroska_demux_get_index); #endif - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&video_src_templ)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&audio_src_templ)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&subtitle_src_templ)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&sink_templ)); + gst_element_class_add_static_pad_template (gstelement_class, + &video_src_templ); + gst_element_class_add_static_pad_template (gstelement_class, + &audio_src_templ); + gst_element_class_add_static_pad_template (gstelement_class, + &subtitle_src_templ); + gst_element_class_add_static_pad_template (gstelement_class, &sink_templ); gst_element_class_set_static_metadata (gstelement_class, "Matroska demuxer", "Codec/Demuxer", diff --git a/gst/matroska/matroska-mux.c b/gst/matroska/matroska-mux.c index 811b12e329..04555757ce 100644 --- a/gst/matroska/matroska-mux.c +++ b/gst/matroska/matroska-mux.c @@ -296,14 +296,13 @@ gst_matroska_mux_class_init (GstMatroskaMuxClass * klass) gobject_class = (GObjectClass *) klass; gstelement_class = (GstElementClass *) klass; - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&videosink_templ)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&audiosink_templ)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&subtitlesink_templ)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&src_templ)); + gst_element_class_add_static_pad_template (gstelement_class, + &videosink_templ); + gst_element_class_add_static_pad_template (gstelement_class, + &audiosink_templ); + gst_element_class_add_static_pad_template (gstelement_class, + &subtitlesink_templ); + gst_element_class_add_static_pad_template (gstelement_class, &src_templ); gst_element_class_set_static_metadata (gstelement_class, "Matroska muxer", "Codec/Muxer", "Muxes video/audio/subtitle streams into a matroska stream", diff --git a/gst/matroska/matroska-parse.c b/gst/matroska/matroska-parse.c index 9bc5ce1443..cc064b0c53 100644 --- a/gst/matroska/matroska-parse.c +++ b/gst/matroska/matroska-parse.c @@ -174,10 +174,8 @@ gst_matroska_parse_class_init (GstMatroskaParseClass * klass) GST_DEBUG_FUNCPTR (gst_matroska_parse_get_index); #endif - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&src_templ)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&sink_templ)); + gst_element_class_add_static_pad_template (gstelement_class, &src_templ); + gst_element_class_add_static_pad_template (gstelement_class, &sink_templ); gst_element_class_set_static_metadata (gstelement_class, "Matroska parser", "Codec/Parser", diff --git a/gst/matroska/webm-mux.c b/gst/matroska/webm-mux.c index 508f095eb4..81113ec92a 100644 --- a/gst/matroska/webm-mux.c +++ b/gst/matroska/webm-mux.c @@ -82,12 +82,11 @@ gst_webm_mux_class_init (GstWebMMuxClass * klass) { GstElementClass *gstelement_class = (GstElementClass *) klass; - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&webm_videosink_templ)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&webm_audiosink_templ)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&webm_src_templ)); + gst_element_class_add_static_pad_template (gstelement_class, + &webm_videosink_templ); + gst_element_class_add_static_pad_template (gstelement_class, + &webm_audiosink_templ); + gst_element_class_add_static_pad_template (gstelement_class, &webm_src_templ); gst_element_class_set_static_metadata (gstelement_class, "WebM muxer", "Codec/Muxer", "Muxes video and audio streams into a WebM stream", diff --git a/gst/monoscope/gstmonoscope.c b/gst/monoscope/gstmonoscope.c index 9ff4fd576c..3e702562cd 100644 --- a/gst/monoscope/gstmonoscope.c +++ b/gst/monoscope/gstmonoscope.c @@ -104,10 +104,8 @@ gst_monoscope_class_init (GstMonoscopeClass * klass) gstelement_class->change_state = GST_DEBUG_FUNCPTR (gst_monoscope_change_state); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&src_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&sink_template)); + gst_element_class_add_static_pad_template (gstelement_class, &src_template); + gst_element_class_add_static_pad_template (gstelement_class, &sink_template); gst_element_class_set_static_metadata (gstelement_class, "Monoscope", "Visualization", "Displays a highly stabilised waveform of audio input", diff --git a/gst/multifile/gstmultifilesink.c b/gst/multifile/gstmultifilesink.c index 5d2878662c..a12c63fcaa 100644 --- a/gst/multifile/gstmultifilesink.c +++ b/gst/multifile/gstmultifilesink.c @@ -318,8 +318,7 @@ gst_multi_file_sink_class_init (GstMultiFileSinkClass * klass) GST_DEBUG_CATEGORY_INIT (gst_multi_file_sink_debug, "multifilesink", 0, "multifilesink element"); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&sinktemplate)); + gst_element_class_add_static_pad_template (gstelement_class, &sinktemplate); gst_element_class_set_static_metadata (gstelement_class, "Multi-File Sink", "Sink/File", "Write buffers to a sequentially named set of files", diff --git a/gst/multifile/gstmultifilesrc.c b/gst/multifile/gstmultifilesrc.c index 316c6e0e12..07707e228d 100644 --- a/gst/multifile/gstmultifilesrc.c +++ b/gst/multifile/gstmultifilesrc.c @@ -188,11 +188,10 @@ gst_multi_file_src_class_init (GstMultiFileSrcClass * klass) GST_DEBUG_CATEGORY_INIT (gst_multi_file_src_debug, "multifilesrc", 0, "multifilesrc element"); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_multi_file_src_pad_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_multi_file_src_pad_template); gst_element_class_set_static_metadata (gstelement_class, "Multi-File Source", - "Source/File", - "Read a sequentially named set of files into buffers", + "Source/File", "Read a sequentially named set of files into buffers", "David Schleef "); } diff --git a/gst/multifile/gstsplitfilesrc.c b/gst/multifile/gstsplitfilesrc.c index b66ddca208..7b7f5e354b 100644 --- a/gst/multifile/gstsplitfilesrc.c +++ b/gst/multifile/gstsplitfilesrc.c @@ -122,8 +122,8 @@ gst_split_file_src_class_init (GstSplitFileSrcClass * klass) GST_DEBUG_CATEGORY_INIT (splitfilesrc_debug, "splitfilesrc", 0, "splitfilesrc element"); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_split_file_src_pad_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_split_file_src_pad_template); gst_element_class_set_static_metadata (gstelement_class, "Split-File Source", "Source/File", diff --git a/gst/multifile/gstsplitmuxsink.c b/gst/multifile/gstsplitmuxsink.c index d39c0381d0..3c8d23884b 100644 --- a/gst/multifile/gstsplitmuxsink.c +++ b/gst/multifile/gstsplitmuxsink.c @@ -168,12 +168,12 @@ gst_splitmux_sink_class_init (GstSplitMuxSinkClass * klass) "Convenience bin that muxes incoming streams into multiple time/size limited files", "Jan Schmidt "); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&video_sink_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&audio_sink_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&subtitle_sink_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &video_sink_template); + gst_element_class_add_static_pad_template (gstelement_class, + &audio_sink_template); + gst_element_class_add_static_pad_template (gstelement_class, + &subtitle_sink_template); gstelement_class->change_state = GST_DEBUG_FUNCPTR (gst_splitmux_sink_change_state); diff --git a/gst/multifile/gstsplitmuxsrc.c b/gst/multifile/gstsplitmuxsrc.c index e26c3d1f21..fee29e00a4 100644 --- a/gst/multifile/gstsplitmuxsrc.c +++ b/gst/multifile/gstsplitmuxsrc.c @@ -198,12 +198,12 @@ gst_splitmux_src_class_init (GstSplitMuxSrcClass * klass) "Source that reads a set of files created by splitmuxsink", "Jan Schmidt "); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&video_src_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&audio_src_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&subtitle_src_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &video_src_template); + gst_element_class_add_static_pad_template (gstelement_class, + &audio_src_template); + gst_element_class_add_static_pad_template (gstelement_class, + &subtitle_src_template); gstelement_class->change_state = GST_DEBUG_FUNCPTR (gst_splitmux_src_change_state); diff --git a/gst/multipart/multipartdemux.c b/gst/multipart/multipartdemux.c index 7695ae5d58..afbc42ad2e 100644 --- a/gst/multipart/multipartdemux.c +++ b/gst/multipart/multipartdemux.c @@ -160,13 +160,12 @@ gst_multipart_demux_class_init (GstMultipartDemuxClass * klass) gstelement_class->change_state = gst_multipart_demux_change_state; - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&multipart_demux_sink_template_factory)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&multipart_demux_src_template_factory)); + gst_element_class_add_static_pad_template (gstelement_class, + &multipart_demux_sink_template_factory); + gst_element_class_add_static_pad_template (gstelement_class, + &multipart_demux_src_template_factory); gst_element_class_set_static_metadata (gstelement_class, "Multipart demuxer", - "Codec/Demuxer", - "demux multipart streams", + "Codec/Demuxer", "demux multipart streams", "Wim Taymans , Sjoerd Simons "); } diff --git a/gst/multipart/multipartmux.c b/gst/multipart/multipartmux.c index 2ac67c109a..17ae919ae7 100644 --- a/gst/multipart/multipartmux.c +++ b/gst/multipart/multipartmux.c @@ -121,10 +121,8 @@ gst_multipart_mux_class_init (GstMultipartMuxClass * klass) gstelement_class->request_new_pad = gst_multipart_mux_request_new_pad; gstelement_class->change_state = gst_multipart_mux_change_state; - 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); gst_element_class_set_static_metadata (gstelement_class, "Multipart muxer", "Codec/Muxer", "mux multipart streams", "Wim Taymans "); diff --git a/gst/replaygain/gstrganalysis.c b/gst/replaygain/gstrganalysis.c index 98c3ca628d..a272c109d0 100644 --- a/gst/replaygain/gstrganalysis.c +++ b/gst/replaygain/gstrganalysis.c @@ -267,10 +267,8 @@ gst_rg_analysis_class_init (GstRgAnalysisClass * klass) trans_class->stop = GST_DEBUG_FUNCPTR (gst_rg_analysis_stop); trans_class->passthrough_on_same_caps = TRUE; - 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_static_metadata (element_class, "ReplayGain analysis", "Filter/Analyzer/Audio", "Perform the ReplayGain analysis", diff --git a/gst/replaygain/gstrglimiter.c b/gst/replaygain/gstrglimiter.c index 95363bed2c..5e04e7d4f6 100644 --- a/gst/replaygain/gstrglimiter.c +++ b/gst/replaygain/gstrglimiter.c @@ -106,10 +106,8 @@ gst_rg_limiter_class_init (GstRgLimiterClass * klass) trans_class->transform_ip = GST_DEBUG_FUNCPTR (gst_rg_limiter_transform_ip); trans_class->passthrough_on_same_caps = FALSE; - 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_static_metadata (element_class, "ReplayGain limiter", "Filter/Effect/Audio", "Apply signal compression to raw audio data", diff --git a/gst/replaygain/gstrgvolume.c b/gst/replaygain/gstrgvolume.c index a53f4d60ab..7c4f2811ea 100644 --- a/gst/replaygain/gstrgvolume.c +++ b/gst/replaygain/gstrgvolume.c @@ -271,10 +271,8 @@ gst_rg_volume_class_init (GstRgVolumeClass * klass) bin_class->add_element = NULL; bin_class->remove_element = NULL; - 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_static_metadata (element_class, "ReplayGain volume", "Filter/Effect/Audio", "Apply ReplayGain volume adjustment", diff --git a/gst/rtp/gstasteriskh263.c b/gst/rtp/gstasteriskh263.c index 0ab609dc08..8aa7fd4516 100644 --- a/gst/rtp/gstasteriskh263.c +++ b/gst/rtp/gstasteriskh263.c @@ -78,10 +78,10 @@ gst_asteriskh263_class_init (GstAsteriskh263Class * klass) gstelement_class->change_state = gst_asteriskh263_change_state; - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_asteriskh263_src_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_asteriskh263_sink_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_asteriskh263_src_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_asteriskh263_sink_template); gst_element_class_set_static_metadata (gstelement_class, "RTP Asterisk H263 depayloader", "Codec/Depayloader/Network/RTP", diff --git a/gst/rtp/gstrtpL16depay.c b/gst/rtp/gstrtpL16depay.c index 41a8fff427..6e81946d99 100644 --- a/gst/rtp/gstrtpL16depay.c +++ b/gst/rtp/gstrtpL16depay.c @@ -99,10 +99,10 @@ gst_rtp_L16_depay_class_init (GstRtpL16DepayClass * klass) gstrtpbasedepayload_class->set_caps = gst_rtp_L16_depay_setcaps; gstrtpbasedepayload_class->process_rtp_packet = gst_rtp_L16_depay_process; - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_L16_depay_src_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_L16_depay_sink_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_L16_depay_src_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_L16_depay_sink_template); gst_element_class_set_static_metadata (gstelement_class, "RTP audio depayloader", "Codec/Depayloader/Network/RTP", diff --git a/gst/rtp/gstrtpL16pay.c b/gst/rtp/gstrtpL16pay.c index db1c7de192..4783a650f2 100644 --- a/gst/rtp/gstrtpL16pay.c +++ b/gst/rtp/gstrtpL16pay.c @@ -104,10 +104,10 @@ gst_rtp_L16_pay_class_init (GstRtpL16PayClass * klass) gstrtpbasepayload_class->get_caps = gst_rtp_L16_pay_getcaps; gstrtpbasepayload_class->handle_buffer = gst_rtp_L16_pay_handle_buffer; - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_L16_pay_src_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_L16_pay_sink_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_L16_pay_src_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_L16_pay_sink_template); gst_element_class_set_static_metadata (gstelement_class, "RTP audio payloader", "Codec/Payloader/Network/RTP", diff --git a/gst/rtp/gstrtpL24depay.c b/gst/rtp/gstrtpL24depay.c index dc7a338823..9ec03499f3 100644 --- a/gst/rtp/gstrtpL24depay.c +++ b/gst/rtp/gstrtpL24depay.c @@ -88,10 +88,10 @@ gst_rtp_L24_depay_class_init (GstRtpL24DepayClass * klass) gstrtpbasedepayload_class->set_caps = gst_rtp_L24_depay_setcaps; gstrtpbasedepayload_class->process_rtp_packet = gst_rtp_L24_depay_process; - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_L24_depay_src_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_L24_depay_sink_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_L24_depay_src_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_L24_depay_sink_template); gst_element_class_set_static_metadata (gstelement_class, "RTP audio depayloader", "Codec/Depayloader/Network/RTP", diff --git a/gst/rtp/gstrtpL24pay.c b/gst/rtp/gstrtpL24pay.c index 1bb37cb3db..936bd44315 100644 --- a/gst/rtp/gstrtpL24pay.c +++ b/gst/rtp/gstrtpL24pay.c @@ -93,10 +93,10 @@ gst_rtp_L24_pay_class_init (GstRtpL24PayClass * klass) gstrtpbasepayload_class->get_caps = gst_rtp_L24_pay_getcaps; gstrtpbasepayload_class->handle_buffer = gst_rtp_L24_pay_handle_buffer; - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_L24_pay_src_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_L24_pay_sink_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_L24_pay_src_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_L24_pay_sink_template); gst_element_class_set_static_metadata (gstelement_class, "RTP audio payloader", "Codec/Payloader/Network/RTP", diff --git a/gst/rtp/gstrtpac3depay.c b/gst/rtp/gstrtpac3depay.c index b9df488e53..50342c8d74 100644 --- a/gst/rtp/gstrtpac3depay.c +++ b/gst/rtp/gstrtpac3depay.c @@ -80,10 +80,10 @@ gst_rtp_ac3_depay_class_init (GstRtpAC3DepayClass * klass) gstelement_class = (GstElementClass *) klass; gstrtpbasedepayload_class = (GstRTPBaseDepayloadClass *) klass; - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_ac3_depay_src_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_ac3_depay_sink_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_ac3_depay_src_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_ac3_depay_sink_template); gst_element_class_set_static_metadata (gstelement_class, "RTP AC3 depayloader", "Codec/Depayloader/Network/RTP", diff --git a/gst/rtp/gstrtpac3pay.c b/gst/rtp/gstrtpac3pay.c index 986589494c..021016def8 100644 --- a/gst/rtp/gstrtpac3pay.c +++ b/gst/rtp/gstrtpac3pay.c @@ -100,10 +100,10 @@ gst_rtp_ac3_pay_class_init (GstRtpAC3PayClass * klass) gstelement_class->change_state = gst_rtp_ac3_pay_change_state; - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_ac3_pay_src_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_ac3_pay_sink_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_ac3_pay_src_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_ac3_pay_sink_template); gst_element_class_set_static_metadata (gstelement_class, "RTP AC3 audio payloader", "Codec/Payloader/Network/RTP", diff --git a/gst/rtp/gstrtpamrdepay.c b/gst/rtp/gstrtpamrdepay.c index 60439f7111..1c87a1a6e9 100644 --- a/gst/rtp/gstrtpamrdepay.c +++ b/gst/rtp/gstrtpamrdepay.c @@ -140,10 +140,10 @@ gst_rtp_amr_depay_class_init (GstRtpAMRDepayClass * klass) gstelement_class = (GstElementClass *) klass; gstrtpbasedepayload_class = (GstRTPBaseDepayloadClass *) klass; - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_amr_depay_src_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_amr_depay_sink_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_amr_depay_src_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_amr_depay_sink_template); gst_element_class_set_static_metadata (gstelement_class, "RTP AMR depayloader", "Codec/Depayloader/Network/RTP", diff --git a/gst/rtp/gstrtpamrpay.c b/gst/rtp/gstrtpamrpay.c index f4849a8c69..300be8f804 100644 --- a/gst/rtp/gstrtpamrpay.c +++ b/gst/rtp/gstrtpamrpay.c @@ -125,10 +125,10 @@ gst_rtp_amr_pay_class_init (GstRtpAMRPayClass * klass) gstelement_class->change_state = gst_rtp_amr_pay_change_state; - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_amr_pay_src_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_amr_pay_sink_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_amr_pay_src_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_amr_pay_sink_template); gst_element_class_set_static_metadata (gstelement_class, "RTP AMR payloader", "Codec/Payloader/Network/RTP", diff --git a/gst/rtp/gstrtpbvdepay.c b/gst/rtp/gstrtpbvdepay.c index 6b7bb18b5b..0482382b4f 100644 --- a/gst/rtp/gstrtpbvdepay.c +++ b/gst/rtp/gstrtpbvdepay.c @@ -74,10 +74,10 @@ gst_rtp_bv_depay_class_init (GstRTPBVDepayClass * klass) gstelement_class = (GstElementClass *) klass; gstrtpbasedepayload_class = (GstRTPBaseDepayloadClass *) klass; - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_bv_depay_src_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_bv_depay_sink_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_bv_depay_src_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_bv_depay_sink_template); gst_element_class_set_static_metadata (gstelement_class, "RTP BroadcomVoice depayloader", "Codec/Depayloader/Network/RTP", diff --git a/gst/rtp/gstrtpbvpay.c b/gst/rtp/gstrtpbvpay.c index 15a7b7f856..9292681381 100644 --- a/gst/rtp/gstrtpbvpay.c +++ b/gst/rtp/gstrtpbvpay.c @@ -81,10 +81,10 @@ gst_rtp_bv_pay_class_init (GstRTPBVPayClass * klass) gstelement_class = (GstElementClass *) klass; gstrtpbasepayload_class = (GstRTPBasePayloadClass *) klass; - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_bv_pay_sink_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_bv_pay_src_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_bv_pay_sink_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_bv_pay_src_template); gst_element_class_set_static_metadata (gstelement_class, "RTP BV Payloader", "Codec/Payloader/Network/RTP", diff --git a/gst/rtp/gstrtpceltdepay.c b/gst/rtp/gstrtpceltdepay.c index ed5b3ae94b..3234c141f5 100644 --- a/gst/rtp/gstrtpceltdepay.c +++ b/gst/rtp/gstrtpceltdepay.c @@ -87,10 +87,10 @@ gst_rtp_celt_depay_class_init (GstRtpCELTDepayClass * klass) gstelement_class = (GstElementClass *) klass; gstrtpbasedepayload_class = (GstRTPBaseDepayloadClass *) klass; - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_celt_depay_src_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_celt_depay_sink_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_celt_depay_src_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_celt_depay_sink_template); gst_element_class_set_static_metadata (gstelement_class, "RTP CELT depayloader", "Codec/Depayloader/Network/RTP", diff --git a/gst/rtp/gstrtpceltpay.c b/gst/rtp/gstrtpceltpay.c index 6f16ba2029..db2ebff9f2 100644 --- a/gst/rtp/gstrtpceltpay.c +++ b/gst/rtp/gstrtpceltpay.c @@ -85,10 +85,10 @@ gst_rtp_celt_pay_class_init (GstRtpCELTPayClass * klass) gstelement_class->change_state = gst_rtp_celt_pay_change_state; - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_celt_pay_sink_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_celt_pay_src_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_celt_pay_sink_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_celt_pay_src_template); gst_element_class_set_static_metadata (gstelement_class, "RTP CELT payloader", "Codec/Payloader/Network/RTP", diff --git a/gst/rtp/gstrtpdvdepay.c b/gst/rtp/gstrtpdvdepay.c index eca969c338..0235b7145d 100644 --- a/gst/rtp/gstrtpdvdepay.c +++ b/gst/rtp/gstrtpdvdepay.c @@ -97,10 +97,8 @@ gst_rtp_dv_depay_class_init (GstRTPDVDepayClass * klass) gstelement_class->change_state = GST_DEBUG_FUNCPTR (gst_rtp_dv_depay_change_state); - 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); gst_element_class_set_static_metadata (gstelement_class, "RTP DV Depayloader", "Codec/Depayloader/Network/RTP", diff --git a/gst/rtp/gstrtpdvpay.c b/gst/rtp/gstrtpdvpay.c index ddda67e689..440880638d 100644 --- a/gst/rtp/gstrtpdvpay.c +++ b/gst/rtp/gstrtpdvpay.c @@ -120,10 +120,10 @@ gst_rtp_dv_pay_class_init (GstRTPDVPayClass * klass) GST_TYPE_DV_PAY_MODE, DEFAULT_MODE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_dv_pay_sink_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_dv_pay_src_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_dv_pay_sink_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_dv_pay_src_template); gst_element_class_set_static_metadata (gstelement_class, "RTP DV Payloader", "Codec/Payloader/Network/RTP", diff --git a/gst/rtp/gstrtpg722depay.c b/gst/rtp/gstrtpg722depay.c index 31c6ab4f31..846251e06f 100644 --- a/gst/rtp/gstrtpg722depay.c +++ b/gst/rtp/gstrtpg722depay.c @@ -81,10 +81,10 @@ gst_rtp_g722_depay_class_init (GstRtpG722DepayClass * klass) gstelement_class = (GstElementClass *) klass; gstrtpbasedepayload_class = (GstRTPBaseDepayloadClass *) klass; - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_g722_depay_src_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_g722_depay_sink_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_g722_depay_src_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_g722_depay_sink_template); gst_element_class_set_static_metadata (gstelement_class, "RTP audio depayloader", "Codec/Depayloader/Network/RTP", diff --git a/gst/rtp/gstrtpg722pay.c b/gst/rtp/gstrtpg722pay.c index 79194c0e7f..eb88c3ccee 100644 --- a/gst/rtp/gstrtpg722pay.c +++ b/gst/rtp/gstrtpg722pay.c @@ -76,10 +76,10 @@ gst_rtp_g722_pay_class_init (GstRtpG722PayClass * klass) gstelement_class = (GstElementClass *) klass; gstrtpbasepayload_class = (GstRTPBasePayloadClass *) klass; - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_g722_pay_src_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_g722_pay_sink_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_g722_pay_src_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_g722_pay_sink_template); gst_element_class_set_static_metadata (gstelement_class, "RTP audio payloader", "Codec/Payloader/Network/RTP", diff --git a/gst/rtp/gstrtpg723depay.c b/gst/rtp/gstrtpg723depay.c index c66473c5c8..901d9ae063 100644 --- a/gst/rtp/gstrtpg723depay.c +++ b/gst/rtp/gstrtpg723depay.c @@ -93,10 +93,10 @@ gst_rtp_g723_depay_class_init (GstRtpG723DepayClass * klass) gstelement_class = (GstElementClass *) klass; gstrtpbasedepayload_class = (GstRTPBaseDepayloadClass *) klass; - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_g723_depay_src_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_g723_depay_sink_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_g723_depay_src_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_g723_depay_sink_template); gst_element_class_set_static_metadata (gstelement_class, "RTP G.723 depayloader", "Codec/Depayloader/Network/RTP", diff --git a/gst/rtp/gstrtpg723pay.c b/gst/rtp/gstrtpg723pay.c index 0937c854ae..2612218a34 100644 --- a/gst/rtp/gstrtpg723pay.c +++ b/gst/rtp/gstrtpg723pay.c @@ -84,10 +84,10 @@ gst_rtp_g723_pay_class_init (GstRTPG723PayClass * klass) gstelement_class->change_state = gst_rtp_g723_pay_change_state; - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_g723_pay_sink_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_g723_pay_src_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_g723_pay_sink_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_g723_pay_src_template); gst_element_class_set_static_metadata (gstelement_class, "RTP G.723 payloader", "Codec/Payloader/Network/RTP", diff --git a/gst/rtp/gstrtpg726depay.c b/gst/rtp/gstrtpg726depay.c index efaadea5f5..4bedb7eeb6 100644 --- a/gst/rtp/gstrtpg726depay.c +++ b/gst/rtp/gstrtpg726depay.c @@ -114,10 +114,10 @@ gst_rtp_g726_depay_class_init (GstRtpG726DepayClass * klass) "Force AAL2 decoding for compatibility with bad payloaders", DEFAULT_FORCE_AAL2, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_g726_depay_src_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_g726_depay_sink_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_g726_depay_src_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_g726_depay_sink_template); gst_element_class_set_static_metadata (gstelement_class, "RTP G.726 depayloader", "Codec/Depayloader/Network/RTP", diff --git a/gst/rtp/gstrtpg726pay.c b/gst/rtp/gstrtpg726pay.c index 7c7e9a826f..09bfb5d51b 100644 --- a/gst/rtp/gstrtpg726pay.c +++ b/gst/rtp/gstrtpg726pay.c @@ -97,10 +97,10 @@ gst_rtp_g726_pay_class_init (GstRtpG726PayClass * klass) "Force AAL2 encoding for compatibility with bad depayloaders", DEFAULT_FORCE_AAL2, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_g726_pay_sink_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_g726_pay_src_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_g726_pay_sink_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_g726_pay_src_template); gst_element_class_set_static_metadata (gstelement_class, "RTP G.726 payloader", "Codec/Payloader/Network/RTP", diff --git a/gst/rtp/gstrtpg729depay.c b/gst/rtp/gstrtpg729depay.c index 56f921a0dd..065da2860c 100644 --- a/gst/rtp/gstrtpg729depay.c +++ b/gst/rtp/gstrtpg729depay.c @@ -93,10 +93,10 @@ gst_rtp_g729_depay_class_init (GstRtpG729DepayClass * klass) gstelement_class = (GstElementClass *) klass; gstrtpbasedepayload_class = (GstRTPBaseDepayloadClass *) klass; - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_g729_depay_src_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_g729_depay_sink_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_g729_depay_src_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_g729_depay_sink_template); gst_element_class_set_static_metadata (gstelement_class, "RTP G.729 depayloader", "Codec/Depayloader/Network/RTP", diff --git a/gst/rtp/gstrtpg729pay.c b/gst/rtp/gstrtpg729pay.c index ad89734a02..f327c8c7e2 100644 --- a/gst/rtp/gstrtpg729pay.c +++ b/gst/rtp/gstrtpg729pay.c @@ -103,10 +103,10 @@ gst_rtp_g729_pay_class_init (GstRTPG729PayClass * klass) gstelement_class->change_state = gst_rtp_g729_pay_change_state; - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_g729_pay_sink_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_g729_pay_src_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_g729_pay_sink_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_g729_pay_src_template); gst_element_class_set_static_metadata (gstelement_class, "RTP G.729 payloader", "Codec/Payloader/Network/RTP", diff --git a/gst/rtp/gstrtpgsmdepay.c b/gst/rtp/gstrtpgsmdepay.c index 7b781e26cd..ddde3f0e62 100644 --- a/gst/rtp/gstrtpgsmdepay.c +++ b/gst/rtp/gstrtpgsmdepay.c @@ -75,10 +75,10 @@ gst_rtp_gsm_depay_class_init (GstRTPGSMDepayClass * klass) gstelement_class = (GstElementClass *) klass; gstrtpbase_depayload_class = (GstRTPBaseDepayloadClass *) klass; - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_gsm_depay_src_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_gsm_depay_sink_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_gsm_depay_src_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_gsm_depay_sink_template); gst_element_class_set_static_metadata (gstelement_class, "RTP GSM depayloader", "Codec/Depayloader/Network/RTP", diff --git a/gst/rtp/gstrtpgsmpay.c b/gst/rtp/gstrtpgsmpay.c index 56c72b6aea..93888d7950 100644 --- a/gst/rtp/gstrtpgsmpay.c +++ b/gst/rtp/gstrtpgsmpay.c @@ -74,10 +74,10 @@ gst_rtp_gsm_pay_class_init (GstRTPGSMPayClass * klass) gstelement_class = (GstElementClass *) klass; gstrtpbasepayload_class = (GstRTPBasePayloadClass *) klass; - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_gsm_pay_sink_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_gsm_pay_src_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_gsm_pay_sink_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_gsm_pay_src_template); gst_element_class_set_static_metadata (gstelement_class, "RTP GSM payloader", "Codec/Payloader/Network/RTP", diff --git a/gst/rtp/gstrtpgstdepay.c b/gst/rtp/gstrtpgstdepay.c index 5c1476a620..7d057428d7 100644 --- a/gst/rtp/gstrtpgstdepay.c +++ b/gst/rtp/gstrtpgstdepay.c @@ -80,10 +80,10 @@ gst_rtp_gst_depay_class_init (GstRtpGSTDepayClass * klass) gstelement_class->change_state = gst_rtp_gst_depay_change_state; - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_gst_depay_src_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_gst_depay_sink_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_gst_depay_src_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_gst_depay_sink_template); gst_element_class_set_static_metadata (gstelement_class, "GStreamer depayloader", "Codec/Depayloader/Network", diff --git a/gst/rtp/gstrtpgstpay.c b/gst/rtp/gstrtpgstpay.c index 20076fba5e..f5511f4df4 100644 --- a/gst/rtp/gstrtpgstpay.c +++ b/gst/rtp/gstrtpgstpay.c @@ -126,10 +126,10 @@ gst_rtp_gst_pay_class_init (GstRtpGSTPayClass * klass) gstelement_class->change_state = gst_rtp_gst_pay_change_state; - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_gst_pay_src_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_gst_pay_sink_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_gst_pay_src_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_gst_pay_sink_template); gst_element_class_set_static_metadata (gstelement_class, "RTP GStreamer payloader", "Codec/Payloader/Network/RTP", diff --git a/gst/rtp/gstrtph261depay.c b/gst/rtp/gstrtph261depay.c index d50ff1c2cf..1f99bd46e3 100644 --- a/gst/rtp/gstrtph261depay.c +++ b/gst/rtp/gstrtph261depay.c @@ -259,10 +259,10 @@ gst_rtp_h261_depay_class_init (GstRtpH261DepayClass * klass) gstelement_class = GST_ELEMENT_CLASS (klass); gstrtpbasedepayload_class = GST_RTP_BASE_DEPAYLOAD_CLASS (klass); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_h261_depay_src_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_h261_depay_sink_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_h261_depay_src_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_h261_depay_sink_template); gst_element_class_set_static_metadata (gstelement_class, "RTP H261 depayloader", "Codec/Depayloader/Network/RTP", diff --git a/gst/rtp/gstrtph261pay.c b/gst/rtp/gstrtph261pay.c index ebcf80e4a2..4b040be10b 100644 --- a/gst/rtp/gstrtph261pay.c +++ b/gst/rtp/gstrtph261pay.c @@ -1047,10 +1047,10 @@ gst_rtp_h261_pay_class_init (GstRtpH261PayClass * klass) element_class = GST_ELEMENT_CLASS (klass); gstrtpbasepayload_class = GST_RTP_BASE_PAYLOAD_CLASS (klass); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_rtp_h261_pay_src_template)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_rtp_h261_pay_sink_template)); + gst_element_class_add_static_pad_template (element_class, + &gst_rtp_h261_pay_src_template); + gst_element_class_add_static_pad_template (element_class, + &gst_rtp_h261_pay_sink_template); gst_element_class_set_static_metadata (element_class, "RTP H261 packet payloader", "Codec/Payloader/Network/RTP", diff --git a/gst/rtp/gstrtph263depay.c b/gst/rtp/gstrtph263depay.c index 4b31b9e62e..0f1bed7e5b 100644 --- a/gst/rtp/gstrtph263depay.c +++ b/gst/rtp/gstrtph263depay.c @@ -101,10 +101,10 @@ gst_rtp_h263_depay_class_init (GstRtpH263DepayClass * klass) gstelement_class->change_state = gst_rtp_h263_depay_change_state; - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_h263_depay_src_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_h263_depay_sink_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_h263_depay_src_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_h263_depay_sink_template); gst_element_class_set_static_metadata (gstelement_class, "RTP H263 depayloader", "Codec/Depayloader/Network/RTP", diff --git a/gst/rtp/gstrtph263pay.c b/gst/rtp/gstrtph263pay.c index f60721a557..639471069f 100644 --- a/gst/rtp/gstrtph263pay.c +++ b/gst/rtp/gstrtph263pay.c @@ -424,10 +424,10 @@ gst_rtp_h263_pay_class_init (GstRtpH263PayClass * klass) "Disable packetization modes B and C", DEFAULT_MODE_A, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_h263_pay_src_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_h263_pay_sink_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_h263_pay_src_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_h263_pay_sink_template); gst_element_class_set_static_metadata (gstelement_class, "RTP H263 packet payloader", "Codec/Payloader/Network/RTP", diff --git a/gst/rtp/gstrtph263pdepay.c b/gst/rtp/gstrtph263pdepay.c index 6aea8e1a17..dbfcb66b74 100644 --- a/gst/rtp/gstrtph263pdepay.c +++ b/gst/rtp/gstrtph263pdepay.c @@ -110,10 +110,10 @@ gst_rtp_h263p_depay_class_init (GstRtpH263PDepayClass * klass) gstelement_class->change_state = gst_rtp_h263p_depay_change_state; - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_h263p_depay_src_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_h263p_depay_sink_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_h263p_depay_src_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_h263p_depay_sink_template); gst_element_class_set_static_metadata (gstelement_class, "RTP H263 depayloader", "Codec/Depayloader/Network/RTP", diff --git a/gst/rtp/gstrtph263ppay.c b/gst/rtp/gstrtph263ppay.c index 9c09ad0b65..844d3f7ccc 100644 --- a/gst/rtp/gstrtph263ppay.c +++ b/gst/rtp/gstrtph263ppay.c @@ -139,10 +139,10 @@ gst_rtp_h263p_pay_class_init (GstRtpH263PPayClass * klass) DEFAULT_FRAGMENTATION_MODE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_h263p_pay_src_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_h263p_pay_sink_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_h263p_pay_src_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_h263p_pay_sink_template); gst_element_class_set_static_metadata (gstelement_class, "RTP H263 payloader", "Codec/Payloader/Network/RTP", diff --git a/gst/rtp/gstrtph264depay.c b/gst/rtp/gstrtph264depay.c index 57ed5248b2..430650e7c6 100644 --- a/gst/rtp/gstrtph264depay.c +++ b/gst/rtp/gstrtph264depay.c @@ -107,10 +107,10 @@ gst_rtp_h264_depay_class_init (GstRtpH264DepayClass * klass) gobject_class->finalize = gst_rtp_h264_depay_finalize; - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_h264_depay_src_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_h264_depay_sink_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_h264_depay_src_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_h264_depay_sink_template); gst_element_class_set_static_metadata (gstelement_class, "RTP H264 depayloader", "Codec/Depayloader/Network/RTP", diff --git a/gst/rtp/gstrtph264pay.c b/gst/rtp/gstrtph264pay.c index c8100ec460..9f8d8cb457 100644 --- a/gst/rtp/gstrtph264pay.c +++ b/gst/rtp/gstrtph264pay.c @@ -135,10 +135,10 @@ gst_rtp_h264_pay_class_init (GstRtpH264PayClass * klass) gobject_class->finalize = gst_rtp_h264_pay_finalize; - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_h264_pay_src_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_h264_pay_sink_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_h264_pay_src_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_h264_pay_sink_template); gst_element_class_set_static_metadata (gstelement_class, "RTP H264 payloader", "Codec/Payloader/Network/RTP", diff --git a/gst/rtp/gstrtph265depay.c b/gst/rtp/gstrtph265depay.c index eb0c2b7f75..51819088ec 100644 --- a/gst/rtp/gstrtph265depay.c +++ b/gst/rtp/gstrtph265depay.c @@ -124,10 +124,10 @@ gst_rtp_h265_depay_class_init (GstRtpH265DepayClass * klass) gobject_class->finalize = gst_rtp_h265_depay_finalize; - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_h265_depay_src_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_h265_depay_sink_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_h265_depay_src_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_h265_depay_sink_template); gst_element_class_set_static_metadata (gstelement_class, "RTP H265 depayloader", "Codec/Depayloader/Network/RTP", diff --git a/gst/rtp/gstrtph265pay.c b/gst/rtp/gstrtph265pay.c index dceb61ecc3..3dc9b8f295 100644 --- a/gst/rtp/gstrtph265pay.c +++ b/gst/rtp/gstrtph265pay.c @@ -170,10 +170,10 @@ gst_rtp_h265_pay_class_init (GstRtpH265PayClass * klass) gobject_class->finalize = gst_rtp_h265_pay_finalize; - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_h265_pay_src_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_h265_pay_sink_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_h265_pay_src_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_h265_pay_sink_template); gst_element_class_set_static_metadata (gstelement_class, "RTP H265 payloader", "Codec/Payloader/Network/RTP", diff --git a/gst/rtp/gstrtpilbcdepay.c b/gst/rtp/gstrtpilbcdepay.c index 9af6d2942e..3df87d8b0d 100644 --- a/gst/rtp/gstrtpilbcdepay.c +++ b/gst/rtp/gstrtpilbcdepay.c @@ -112,10 +112,10 @@ gst_rtp_ilbc_depay_class_init (GstRTPiLBCDepayClass * klass) GST_TYPE_ILBC_MODE, DEFAULT_MODE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_ilbc_depay_src_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_ilbc_depay_sink_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_ilbc_depay_src_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_ilbc_depay_sink_template); gst_element_class_set_static_metadata (gstelement_class, "RTP iLBC depayloader", "Codec/Depayloader/Network/RTP", diff --git a/gst/rtp/gstrtpilbcpay.c b/gst/rtp/gstrtpilbcpay.c index 7d6ea280be..83161ffaf6 100644 --- a/gst/rtp/gstrtpilbcpay.c +++ b/gst/rtp/gstrtpilbcpay.c @@ -69,10 +69,10 @@ gst_rtp_ilbc_pay_class_init (GstRTPILBCPayClass * klass) gstelement_class = (GstElementClass *) klass; gstrtpbasepayload_class = (GstRTPBasePayloadClass *) klass; - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_ilbc_pay_sink_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_ilbc_pay_src_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_ilbc_pay_sink_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_ilbc_pay_src_template); gst_element_class_set_static_metadata (gstelement_class, "RTP iLBC Payloader", "Codec/Payloader/Network/RTP", diff --git a/gst/rtp/gstrtpj2kdepay.c b/gst/rtp/gstrtpj2kdepay.c index f132811e97..f6294195ac 100644 --- a/gst/rtp/gstrtpj2kdepay.c +++ b/gst/rtp/gstrtpj2kdepay.c @@ -98,10 +98,10 @@ gst_rtp_j2k_depay_class_init (GstRtpJ2KDepayClass * klass) gobject_class->set_property = gst_rtp_j2k_depay_set_property; gobject_class->get_property = gst_rtp_j2k_depay_get_property; - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_j2k_depay_src_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_j2k_depay_sink_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_j2k_depay_src_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_j2k_depay_sink_template); gst_element_class_set_static_metadata (gstelement_class, "RTP JPEG 2000 depayloader", "Codec/Depayloader/Network/RTP", diff --git a/gst/rtp/gstrtpj2kpay.c b/gst/rtp/gstrtpj2kpay.c index 2791ef4539..ee4da03086 100644 --- a/gst/rtp/gstrtpj2kpay.c +++ b/gst/rtp/gstrtpj2kpay.c @@ -127,10 +127,10 @@ gst_rtp_j2k_pay_class_init (GstRtpJ2KPayClass * klass) gobject_class->set_property = gst_rtp_j2k_pay_set_property; gobject_class->get_property = gst_rtp_j2k_pay_get_property; - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_j2k_pay_src_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_j2k_pay_sink_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_j2k_pay_src_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_j2k_pay_sink_template); gst_element_class_set_static_metadata (gstelement_class, "RTP JPEG 2000 payloader", "Codec/Payloader/Network/RTP", diff --git a/gst/rtp/gstrtpjpegdepay.c b/gst/rtp/gstrtpjpegdepay.c index c804aea9d5..a0c7fd4152 100644 --- a/gst/rtp/gstrtpjpegdepay.c +++ b/gst/rtp/gstrtpjpegdepay.c @@ -94,10 +94,10 @@ gst_rtp_jpeg_depay_class_init (GstRtpJPEGDepayClass * klass) gobject_class->finalize = gst_rtp_jpeg_depay_finalize; - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_jpeg_depay_src_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_jpeg_depay_sink_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_jpeg_depay_src_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_jpeg_depay_sink_template); gst_element_class_set_static_metadata (gstelement_class, "RTP JPEG depayloader", "Codec/Depayloader/Network/RTP", diff --git a/gst/rtp/gstrtpjpegpay.c b/gst/rtp/gstrtpjpegpay.c index 12e43603ba..a37c18b886 100644 --- a/gst/rtp/gstrtpjpegpay.c +++ b/gst/rtp/gstrtpjpegpay.c @@ -261,10 +261,10 @@ gst_rtp_jpeg_pay_class_init (GstRtpJPEGPayClass * klass) gobject_class->set_property = gst_rtp_jpeg_pay_set_property; gobject_class->get_property = gst_rtp_jpeg_pay_get_property; - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_jpeg_pay_src_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_jpeg_pay_sink_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_jpeg_pay_src_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_jpeg_pay_sink_template); gst_element_class_set_static_metadata (gstelement_class, "RTP JPEG payloader", "Codec/Payloader/Network/RTP", diff --git a/gst/rtp/gstrtpklvdepay.c b/gst/rtp/gstrtpklvdepay.c index 583356bd6f..eeefe7e45c 100644 --- a/gst/rtp/gstrtpklvdepay.c +++ b/gst/rtp/gstrtpklvdepay.c @@ -85,10 +85,8 @@ gst_rtp_klv_depay_class_init (GstRtpKlvDepayClass * klass) element_class->change_state = gst_rtp_klv_depay_change_state; - 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_static_metadata (element_class, "RTP KLV Depayloader", "Codec/Depayloader/Network/RTP", diff --git a/gst/rtp/gstrtpklvpay.c b/gst/rtp/gstrtpklvpay.c index a27d95ee66..5a07d2cb3e 100644 --- a/gst/rtp/gstrtpklvpay.c +++ b/gst/rtp/gstrtpklvpay.c @@ -74,10 +74,8 @@ gst_rtp_klv_pay_class_init (GstRtpKlvPayClass * klass) GST_DEBUG_CATEGORY_INIT (klvpay_debug, "klvpay", 0, "RTP KLV Payloader"); - 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_static_metadata (element_class, "RTP KLV Payloader", "Codec/Payloader/Network/RTP", diff --git a/gst/rtp/gstrtpmp1sdepay.c b/gst/rtp/gstrtpmp1sdepay.c index f6c71b911c..31a3108d21 100644 --- a/gst/rtp/gstrtpmp1sdepay.c +++ b/gst/rtp/gstrtpmp1sdepay.c @@ -81,10 +81,10 @@ gst_rtp_mp1s_depay_class_init (GstRtpMP1SDepayClass * klass) gstrtpbasedepayload_class->process_rtp_packet = gst_rtp_mp1s_depay_process; gstrtpbasedepayload_class->set_caps = gst_rtp_mp1s_depay_setcaps; - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_mp1s_depay_src_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_mp1s_depay_sink_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_mp1s_depay_src_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_mp1s_depay_sink_template); gst_element_class_set_static_metadata (gstelement_class, "RTP MPEG1 System Stream depayloader", "Codec/Depayloader/Network/RTP", diff --git a/gst/rtp/gstrtpmp2tdepay.c b/gst/rtp/gstrtpmp2tdepay.c index 6f4d933d09..f8e0d0c7b8 100644 --- a/gst/rtp/gstrtpmp2tdepay.c +++ b/gst/rtp/gstrtpmp2tdepay.c @@ -99,10 +99,10 @@ gst_rtp_mp2t_depay_class_init (GstRtpMP2TDepayClass * klass) gobject_class->set_property = gst_rtp_mp2t_depay_set_property; gobject_class->get_property = gst_rtp_mp2t_depay_get_property; - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_mp2t_depay_src_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_mp2t_depay_sink_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_mp2t_depay_src_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_mp2t_depay_sink_template); gst_element_class_set_static_metadata (gstelement_class, "RTP MPEG Transport Stream depayloader", "Codec/Depayloader/Network/RTP", diff --git a/gst/rtp/gstrtpmp2tpay.c b/gst/rtp/gstrtpmp2tpay.c index 3ddb429ce2..12f948ed8b 100644 --- a/gst/rtp/gstrtpmp2tpay.c +++ b/gst/rtp/gstrtpmp2tpay.c @@ -76,10 +76,10 @@ gst_rtp_mp2t_pay_class_init (GstRTPMP2TPayClass * klass) gstrtpbasepayload_class->set_caps = gst_rtp_mp2t_pay_setcaps; gstrtpbasepayload_class->handle_buffer = gst_rtp_mp2t_pay_handle_buffer; - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_mp2t_pay_sink_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_mp2t_pay_src_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_mp2t_pay_sink_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_mp2t_pay_src_template); gst_element_class_set_static_metadata (gstelement_class, "RTP MPEG2 Transport Stream payloader", "Codec/Payloader/Network/RTP", "Payload-encodes MPEG2 TS into RTP packets (RFC 2250)", diff --git a/gst/rtp/gstrtpmp4adepay.c b/gst/rtp/gstrtpmp4adepay.c index 40080f1ffd..0f50523269 100644 --- a/gst/rtp/gstrtpmp4adepay.c +++ b/gst/rtp/gstrtpmp4adepay.c @@ -90,10 +90,10 @@ gst_rtp_mp4a_depay_class_init (GstRtpMP4ADepayClass * klass) gstrtpbasedepayload_class->process_rtp_packet = gst_rtp_mp4a_depay_process; gstrtpbasedepayload_class->set_caps = gst_rtp_mp4a_depay_setcaps; - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_mp4a_depay_src_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_mp4a_depay_sink_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_mp4a_depay_src_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_mp4a_depay_sink_template); gst_element_class_set_static_metadata (gstelement_class, "RTP MPEG4 audio depayloader", "Codec/Depayloader/Network/RTP", diff --git a/gst/rtp/gstrtpmp4apay.c b/gst/rtp/gstrtpmp4apay.c index b42cffdc8f..64b4baad87 100644 --- a/gst/rtp/gstrtpmp4apay.c +++ b/gst/rtp/gstrtpmp4apay.c @@ -84,10 +84,10 @@ G_DEFINE_TYPE (GstRtpMP4APay, gst_rtp_mp4a_pay, GST_TYPE_RTP_BASE_PAYLOAD) gstrtpbasepayload_class->set_caps = gst_rtp_mp4a_pay_setcaps; gstrtpbasepayload_class->handle_buffer = gst_rtp_mp4a_pay_handle_buffer; - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_mp4a_pay_src_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_mp4a_pay_sink_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_mp4a_pay_src_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_mp4a_pay_sink_template); gst_element_class_set_static_metadata (gstelement_class, "RTP MPEG4 audio payloader", "Codec/Payloader/Network/RTP", diff --git a/gst/rtp/gstrtpmp4gdepay.c b/gst/rtp/gstrtpmp4gdepay.c index c8c79c93d7..d7d91c4edb 100644 --- a/gst/rtp/gstrtpmp4gdepay.c +++ b/gst/rtp/gstrtpmp4gdepay.c @@ -162,10 +162,10 @@ gst_rtp_mp4g_depay_class_init (GstRtpMP4GDepayClass * klass) gstrtpbasedepayload_class->set_caps = gst_rtp_mp4g_depay_setcaps; gstrtpbasedepayload_class->handle_event = gst_rtp_mp4g_depay_handle_event; - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_mp4g_depay_src_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_mp4g_depay_sink_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_mp4g_depay_src_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_mp4g_depay_sink_template); gst_element_class_set_static_metadata (gstelement_class, "RTP MPEG4 ES depayloader", "Codec/Depayloader/Network/RTP", diff --git a/gst/rtp/gstrtpmp4gpay.c b/gst/rtp/gstrtpmp4gpay.c index 366ebf5a69..44c6cf2d15 100644 --- a/gst/rtp/gstrtpmp4gpay.c +++ b/gst/rtp/gstrtpmp4gpay.c @@ -107,10 +107,10 @@ G_DEFINE_TYPE (GstRtpMP4GPay, gst_rtp_mp4g_pay, GST_TYPE_RTP_BASE_PAYLOAD) gstrtpbasepayload_class->handle_buffer = gst_rtp_mp4g_pay_handle_buffer; gstrtpbasepayload_class->sink_event = gst_rtp_mp4g_pay_sink_event; - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_mp4g_pay_src_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_mp4g_pay_sink_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_mp4g_pay_src_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_mp4g_pay_sink_template); gst_element_class_set_static_metadata (gstelement_class, "RTP MPEG4 ES payloader", diff --git a/gst/rtp/gstrtpmp4vdepay.c b/gst/rtp/gstrtpmp4vdepay.c index a62d64a2b0..49b6f0f872 100644 --- a/gst/rtp/gstrtpmp4vdepay.c +++ b/gst/rtp/gstrtpmp4vdepay.c @@ -86,10 +86,10 @@ gst_rtp_mp4v_depay_class_init (GstRtpMP4VDepayClass * klass) gstrtpbasedepayload_class->process_rtp_packet = gst_rtp_mp4v_depay_process; gstrtpbasedepayload_class->set_caps = gst_rtp_mp4v_depay_setcaps; - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_mp4v_depay_src_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_mp4v_depay_sink_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_mp4v_depay_src_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_mp4v_depay_sink_template); gst_element_class_set_static_metadata (gstelement_class, "RTP MPEG4 video depayloader", "Codec/Depayloader/Network/RTP", diff --git a/gst/rtp/gstrtpmp4vpay.c b/gst/rtp/gstrtpmp4vpay.c index 5509579564..671f353ef7 100644 --- a/gst/rtp/gstrtpmp4vpay.c +++ b/gst/rtp/gstrtpmp4vpay.c @@ -95,10 +95,10 @@ G_DEFINE_TYPE (GstRtpMP4VPay, gst_rtp_mp4v_pay, GST_TYPE_RTP_BASE_PAYLOAD) gobject_class->set_property = gst_rtp_mp4v_pay_set_property; gobject_class->get_property = gst_rtp_mp4v_pay_get_property; - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_mp4v_pay_src_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_mp4v_pay_sink_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_mp4v_pay_src_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_mp4v_pay_sink_template); gst_element_class_set_static_metadata (gstelement_class, "RTP MPEG4 Video payloader", "Codec/Payloader/Network/RTP", diff --git a/gst/rtp/gstrtpmpadepay.c b/gst/rtp/gstrtpmpadepay.c index ccb4633ce9..d580770ae5 100644 --- a/gst/rtp/gstrtpmpadepay.c +++ b/gst/rtp/gstrtpmpadepay.c @@ -71,10 +71,10 @@ gst_rtp_mpa_depay_class_init (GstRtpMPADepayClass * klass) gstelement_class = (GstElementClass *) klass; gstrtpbasedepayload_class = (GstRTPBaseDepayloadClass *) klass; - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_mpa_depay_src_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_mpa_depay_sink_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_mpa_depay_src_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_mpa_depay_sink_template); gst_element_class_set_static_metadata (gstelement_class, "RTP MPEG audio depayloader", "Codec/Depayloader/Network/RTP", diff --git a/gst/rtp/gstrtpmpapay.c b/gst/rtp/gstrtpmpapay.c index fe2f3a7e63..6e6054de88 100644 --- a/gst/rtp/gstrtpmpapay.c +++ b/gst/rtp/gstrtpmpapay.c @@ -87,10 +87,10 @@ gst_rtp_mpa_pay_class_init (GstRtpMPAPayClass * klass) gstelement_class->change_state = gst_rtp_mpa_pay_change_state; - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_mpa_pay_src_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_mpa_pay_sink_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_mpa_pay_src_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_mpa_pay_sink_template); gst_element_class_set_static_metadata (gstelement_class, "RTP MPEG audio payloader", "Codec/Payloader/Network/RTP", diff --git a/gst/rtp/gstrtpmparobustdepay.c b/gst/rtp/gstrtpmparobustdepay.c index 02155e5232..702d2b0eaa 100644 --- a/gst/rtp/gstrtpmparobustdepay.c +++ b/gst/rtp/gstrtpmparobustdepay.c @@ -111,10 +111,10 @@ gst_rtp_mpa_robust_depay_class_init (GstRtpMPARobustDepayClass * klass) gstelement_class->change_state = GST_DEBUG_FUNCPTR (gst_rtp_mpa_robust_change_state); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_mpa_robust_depay_src_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_mpa_robust_depay_sink_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_mpa_robust_depay_src_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_mpa_robust_depay_sink_template); gst_element_class_set_static_metadata (gstelement_class, "RTP MPEG audio depayloader", "Codec/Depayloader/Network/RTP", diff --git a/gst/rtp/gstrtpmpvdepay.c b/gst/rtp/gstrtpmpvdepay.c index ff98fc049d..81b5e22709 100644 --- a/gst/rtp/gstrtpmpvdepay.c +++ b/gst/rtp/gstrtpmpvdepay.c @@ -70,10 +70,10 @@ gst_rtp_mpv_depay_class_init (GstRtpMPVDepayClass * klass) gstelement_class = (GstElementClass *) klass; gstrtpbasedepayload_class = (GstRTPBaseDepayloadClass *) klass; - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_mpv_depay_src_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_mpv_depay_sink_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_mpv_depay_src_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_mpv_depay_sink_template); gst_element_class_set_static_metadata (gstelement_class, "RTP MPEG video depayloader", "Codec/Depayloader/Network/RTP", diff --git a/gst/rtp/gstrtpmpvpay.c b/gst/rtp/gstrtpmpvpay.c index 40bda45bbb..d16b3a0094 100644 --- a/gst/rtp/gstrtpmpvpay.c +++ b/gst/rtp/gstrtpmpvpay.c @@ -85,10 +85,10 @@ gst_rtp_mpv_pay_class_init (GstRTPMPVPayClass * klass) gstelement_class->change_state = gst_rtp_mpv_pay_change_state; - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_mpv_pay_sink_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_mpv_pay_src_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_mpv_pay_sink_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_mpv_pay_src_template); gst_element_class_set_static_metadata (gstelement_class, "RTP MPEG2 ES video payloader", "Codec/Payloader/Network/RTP", diff --git a/gst/rtp/gstrtpopusdepay.c b/gst/rtp/gstrtpopusdepay.c index b9d529ede6..afa6ba7e54 100644 --- a/gst/rtp/gstrtpopusdepay.c +++ b/gst/rtp/gstrtpopusdepay.c @@ -67,10 +67,10 @@ gst_rtp_opus_depay_class_init (GstRTPOpusDepayClass * klass) element_class = GST_ELEMENT_CLASS (klass); gstbasertpdepayload_class = (GstRTPBaseDepayloadClass *) klass; - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_rtp_opus_depay_src_template)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_rtp_opus_depay_sink_template)); + gst_element_class_add_static_pad_template (element_class, + &gst_rtp_opus_depay_src_template); + gst_element_class_add_static_pad_template (element_class, + &gst_rtp_opus_depay_sink_template); gst_element_class_set_static_metadata (element_class, "RTP Opus packet depayloader", "Codec/Depayloader/Network/RTP", "Extracts Opus audio from RTP packets", diff --git a/gst/rtp/gstrtpopuspay.c b/gst/rtp/gstrtpopuspay.c index 1c6fb5106d..1a6eb805a0 100644 --- a/gst/rtp/gstrtpopuspay.c +++ b/gst/rtp/gstrtpopuspay.c @@ -76,10 +76,10 @@ gst_rtp_opus_pay_class_init (GstRtpOPUSPayClass * klass) gstbasertppayload_class->get_caps = gst_rtp_opus_pay_getcaps; gstbasertppayload_class->handle_buffer = gst_rtp_opus_pay_handle_buffer; - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_rtp_opus_pay_src_template)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_rtp_opus_pay_sink_template)); + gst_element_class_add_static_pad_template (element_class, + &gst_rtp_opus_pay_src_template); + gst_element_class_add_static_pad_template (element_class, + &gst_rtp_opus_pay_sink_template); gst_element_class_set_static_metadata (element_class, "RTP Opus payloader", diff --git a/gst/rtp/gstrtppcmadepay.c b/gst/rtp/gstrtppcmadepay.c index 5556dc0718..4d13528060 100644 --- a/gst/rtp/gstrtppcmadepay.c +++ b/gst/rtp/gstrtppcmadepay.c @@ -79,10 +79,10 @@ gst_rtp_pcma_depay_class_init (GstRtpPcmaDepayClass * klass) gstelement_class = (GstElementClass *) klass; gstrtpbasedepayload_class = (GstRTPBaseDepayloadClass *) klass; - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_pcma_depay_src_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_pcma_depay_sink_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_pcma_depay_src_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_pcma_depay_sink_template); gst_element_class_set_static_metadata (gstelement_class, "RTP PCMA depayloader", "Codec/Depayloader/Network/RTP", diff --git a/gst/rtp/gstrtppcmapay.c b/gst/rtp/gstrtppcmapay.c index 0860d760be..7c0ca164d3 100644 --- a/gst/rtp/gstrtppcmapay.c +++ b/gst/rtp/gstrtppcmapay.c @@ -66,10 +66,10 @@ gst_rtp_pcma_pay_class_init (GstRtpPcmaPayClass * klass) gstelement_class = (GstElementClass *) klass; gstrtpbasepayload_class = (GstRTPBasePayloadClass *) klass; - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_pcma_pay_sink_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_pcma_pay_src_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_pcma_pay_sink_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_pcma_pay_src_template); gst_element_class_set_static_metadata (gstelement_class, "RTP PCMA payloader", "Codec/Payloader/Network/RTP", diff --git a/gst/rtp/gstrtppcmudepay.c b/gst/rtp/gstrtppcmudepay.c index 450ca9e87e..f8543154d0 100644 --- a/gst/rtp/gstrtppcmudepay.c +++ b/gst/rtp/gstrtppcmudepay.c @@ -80,10 +80,10 @@ gst_rtp_pcmu_depay_class_init (GstRtpPcmuDepayClass * klass) gstelement_class = (GstElementClass *) klass; gstrtpbasedepayload_class = (GstRTPBaseDepayloadClass *) klass; - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_pcmu_depay_src_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_pcmu_depay_sink_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_pcmu_depay_src_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_pcmu_depay_sink_template); gst_element_class_set_static_metadata (gstelement_class, "RTP PCMU depayloader", "Codec/Depayloader/Network/RTP", diff --git a/gst/rtp/gstrtppcmupay.c b/gst/rtp/gstrtppcmupay.c index b4beb96372..03bcd7dbf1 100644 --- a/gst/rtp/gstrtppcmupay.c +++ b/gst/rtp/gstrtppcmupay.c @@ -66,10 +66,10 @@ gst_rtp_pcmu_pay_class_init (GstRtpPcmuPayClass * klass) gstelement_class = (GstElementClass *) klass; gstrtpbasepayload_class = (GstRTPBasePayloadClass *) klass; - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_pcmu_pay_sink_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_pcmu_pay_src_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_pcmu_pay_sink_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_pcmu_pay_src_template); gst_element_class_set_static_metadata (gstelement_class, "RTP PCMU payloader", "Codec/Payloader/Network/RTP", diff --git a/gst/rtp/gstrtpqcelpdepay.c b/gst/rtp/gstrtpqcelpdepay.c index 58815dc698..924d71effb 100644 --- a/gst/rtp/gstrtpqcelpdepay.c +++ b/gst/rtp/gstrtpqcelpdepay.c @@ -98,10 +98,10 @@ gst_rtp_qcelp_depay_class_init (GstRtpQCELPDepayClass * klass) gstrtpbasedepayload_class->process_rtp_packet = gst_rtp_qcelp_depay_process; gstrtpbasedepayload_class->set_caps = gst_rtp_qcelp_depay_setcaps; - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_qcelp_depay_src_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_qcelp_depay_sink_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_qcelp_depay_src_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_qcelp_depay_sink_template); gst_element_class_set_static_metadata (gstelement_class, "RTP QCELP depayloader", "Codec/Depayloader/Network/RTP", diff --git a/gst/rtp/gstrtpqdmdepay.c b/gst/rtp/gstrtpqdmdepay.c index fc12c79ce3..898663aa7a 100644 --- a/gst/rtp/gstrtpqdmdepay.c +++ b/gst/rtp/gstrtpqdmdepay.c @@ -84,10 +84,10 @@ gst_rtp_qdm2_depay_class_init (GstRtpQDM2DepayClass * klass) gstelement_class->change_state = gst_rtp_qdm2_depay_change_state; - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_qdm2_depay_src_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_qdm2_depay_sink_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_qdm2_depay_src_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_qdm2_depay_sink_template); gst_element_class_set_static_metadata (gstelement_class, "RTP QDM2 depayloader", diff --git a/gst/rtp/gstrtpsbcdepay.c b/gst/rtp/gstrtpsbcdepay.c index 4863fc8247..7f8ba39668 100644 --- a/gst/rtp/gstrtpsbcdepay.c +++ b/gst/rtp/gstrtpsbcdepay.c @@ -76,10 +76,10 @@ gst_rtp_sbc_depay_class_init (GstRtpSbcDepayClass * klass) gstbasertpdepayload_class->set_caps = gst_rtp_sbc_depay_setcaps; gstbasertpdepayload_class->process_rtp_packet = gst_rtp_sbc_depay_process; - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_rtp_sbc_depay_src_template)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_rtp_sbc_depay_sink_template)); + gst_element_class_add_static_pad_template (element_class, + &gst_rtp_sbc_depay_src_template); + gst_element_class_add_static_pad_template (element_class, + &gst_rtp_sbc_depay_sink_template); GST_DEBUG_CATEGORY_INIT (rtpsbcdepay_debug, "rtpsbcdepay", 0, "SBC Audio RTP Depayloader"); diff --git a/gst/rtp/gstrtpsbcpay.c b/gst/rtp/gstrtpsbcpay.c index b012407593..dc3d860742 100644 --- a/gst/rtp/gstrtpsbcpay.c +++ b/gst/rtp/gstrtpsbcpay.c @@ -293,10 +293,10 @@ gst_rtp_sbc_pay_class_init (GstRtpSBCPayClass * klass) "(-1 for maximum allowed by the mtu)", -1, G_MAXINT, DEFAULT_MIN_FRAMES, G_PARAM_READWRITE)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_rtp_sbc_pay_sink_factory)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_rtp_sbc_pay_src_factory)); + gst_element_class_add_static_pad_template (element_class, + &gst_rtp_sbc_pay_sink_factory); + gst_element_class_add_static_pad_template (element_class, + &gst_rtp_sbc_pay_src_factory); gst_element_class_set_static_metadata (element_class, "RTP packet payloader", "Codec/Payloader/Network", "Payload SBC audio as RTP packets", diff --git a/gst/rtp/gstrtpsirendepay.c b/gst/rtp/gstrtpsirendepay.c index d5e95eb41e..15b7109502 100644 --- a/gst/rtp/gstrtpsirendepay.c +++ b/gst/rtp/gstrtpsirendepay.c @@ -67,10 +67,10 @@ G_DEFINE_TYPE (GstRTPSirenDepay, gst_rtp_siren_depay, gstrtpbasedepayload_class->process_rtp_packet = gst_rtp_siren_depay_process; gstrtpbasedepayload_class->set_caps = gst_rtp_siren_depay_setcaps; - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_siren_depay_src_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_siren_depay_sink_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_siren_depay_src_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_siren_depay_sink_template); gst_element_class_set_static_metadata (gstelement_class, "RTP Siren packet depayloader", "Codec/Depayloader/Network/RTP", "Extracts Siren audio from RTP packets", diff --git a/gst/rtp/gstrtpsirenpay.c b/gst/rtp/gstrtpsirenpay.c index 2277fecfe8..04f9aa8176 100644 --- a/gst/rtp/gstrtpsirenpay.c +++ b/gst/rtp/gstrtpsirenpay.c @@ -65,10 +65,10 @@ gst_rtp_siren_pay_class_init (GstRTPSirenPayClass * klass) gstrtpbasepayload_class->set_caps = gst_rtp_siren_pay_setcaps; - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_siren_pay_sink_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_siren_pay_src_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_siren_pay_sink_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_siren_pay_src_template); gst_element_class_set_static_metadata (gstelement_class, "RTP Payloader for Siren Audio", "Codec/Payloader/Network/RTP", "Packetize Siren audio streams into RTP packets", diff --git a/gst/rtp/gstrtpspeexdepay.c b/gst/rtp/gstrtpspeexdepay.c index eb9d8e4009..b6577e5e4a 100644 --- a/gst/rtp/gstrtpspeexdepay.c +++ b/gst/rtp/gstrtpspeexdepay.c @@ -79,10 +79,10 @@ gst_rtp_speex_depay_class_init (GstRtpSPEEXDepayClass * klass) gstrtpbasedepayload_class->process_rtp_packet = gst_rtp_speex_depay_process; gstrtpbasedepayload_class->set_caps = gst_rtp_speex_depay_setcaps; - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_speex_depay_src_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_speex_depay_sink_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_speex_depay_src_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_speex_depay_sink_template); gst_element_class_set_static_metadata (gstelement_class, "RTP Speex depayloader", "Codec/Depayloader/Network/RTP", "Extracts Speex audio from RTP packets", diff --git a/gst/rtp/gstrtpspeexpay.c b/gst/rtp/gstrtpspeexpay.c index 4ba86ba93f..8a64a029c8 100644 --- a/gst/rtp/gstrtpspeexpay.c +++ b/gst/rtp/gstrtpspeexpay.c @@ -80,10 +80,10 @@ gst_rtp_speex_pay_class_init (GstRtpSPEEXPayClass * klass) gstrtpbasepayload_class->get_caps = gst_rtp_speex_pay_getcaps; gstrtpbasepayload_class->handle_buffer = gst_rtp_speex_pay_handle_buffer; - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_speex_pay_sink_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_speex_pay_src_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_speex_pay_sink_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_speex_pay_src_template); gst_element_class_set_static_metadata (gstelement_class, "RTP Speex payloader", "Codec/Payloader/Network/RTP", "Payload-encodes Speex audio into a RTP packet", diff --git a/gst/rtp/gstrtpstreamdepay.c b/gst/rtp/gstrtpstreamdepay.c index 699b15cf7a..34500e9cde 100644 --- a/gst/rtp/gstrtpstreamdepay.c +++ b/gst/rtp/gstrtpstreamdepay.c @@ -76,10 +76,8 @@ gst_rtp_stream_depay_class_init (GstRtpStreamDepayClass * klass) GST_DEBUG_CATEGORY_INIT (gst_rtp_stream_depay_debug, "rtpstreamdepay", 0, "RTP stream depayloader"); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&src_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&sink_template)); + gst_element_class_add_static_pad_template (gstelement_class, &src_template); + gst_element_class_add_static_pad_template (gstelement_class, &sink_template); gst_element_class_set_static_metadata (gstelement_class, "RTP Stream Depayloading", "Codec/Depayloader/Network", diff --git a/gst/rtp/gstrtpstreampay.c b/gst/rtp/gstrtpstreampay.c index 117f678309..87848c4f23 100644 --- a/gst/rtp/gstrtpstreampay.c +++ b/gst/rtp/gstrtpstreampay.c @@ -80,10 +80,8 @@ gst_rtp_stream_pay_class_init (GstRtpStreamPayClass * klass) "Payloads RTP/RTCP packets for streaming protocols according to RFC4571", "Sebastian Dröge "); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&src_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&sink_template)); + gst_element_class_add_static_pad_template (gstelement_class, &src_template); + gst_element_class_add_static_pad_template (gstelement_class, &sink_template); } static void diff --git a/gst/rtp/gstrtpsv3vdepay.c b/gst/rtp/gstrtpsv3vdepay.c index 7900dece06..932eb1e647 100644 --- a/gst/rtp/gstrtpsv3vdepay.c +++ b/gst/rtp/gstrtpsv3vdepay.c @@ -80,10 +80,10 @@ gst_rtp_sv3v_depay_class_init (GstRtpSV3VDepayClass * klass) gstelement_class->change_state = gst_rtp_sv3v_depay_change_state; - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_sv3v_depay_src_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_sv3v_depay_sink_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_sv3v_depay_src_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_sv3v_depay_sink_template); gst_element_class_set_static_metadata (gstelement_class, "RTP SVQ3 depayloader", "Codec/Depayloader/Network/RTP", diff --git a/gst/rtp/gstrtptheoradepay.c b/gst/rtp/gstrtptheoradepay.c index 0a9f228426..edc50cfff9 100644 --- a/gst/rtp/gstrtptheoradepay.c +++ b/gst/rtp/gstrtptheoradepay.c @@ -96,10 +96,10 @@ gst_rtp_theora_depay_class_init (GstRtpTheoraDepayClass * klass) gstrtpbasedepayload_class->set_caps = gst_rtp_theora_depay_setcaps; gstrtpbasedepayload_class->packet_lost = gst_rtp_theora_depay_packet_lost; - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_theora_depay_sink_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_theora_depay_src_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_theora_depay_sink_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_theora_depay_src_template); gst_element_class_set_static_metadata (gstelement_class, "RTP Theora depayloader", "Codec/Depayloader/Network/RTP", diff --git a/gst/rtp/gstrtptheorapay.c b/gst/rtp/gstrtptheorapay.c index c2b46404ca..b6c5bde2dd 100644 --- a/gst/rtp/gstrtptheorapay.c +++ b/gst/rtp/gstrtptheorapay.c @@ -119,10 +119,10 @@ gst_rtp_theora_pay_class_init (GstRtpTheoraPayClass * klass) gobject_class->set_property = gst_rtp_theora_pay_set_property; gobject_class->get_property = gst_rtp_theora_pay_get_property; - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_theora_pay_src_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_theora_pay_sink_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_theora_pay_src_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_theora_pay_sink_template); gst_element_class_set_static_metadata (gstelement_class, "RTP Theora payloader", "Codec/Payloader/Network/RTP", diff --git a/gst/rtp/gstrtpvorbisdepay.c b/gst/rtp/gstrtpvorbisdepay.c index bd2f78faf5..fdd5eb84e7 100644 --- a/gst/rtp/gstrtpvorbisdepay.c +++ b/gst/rtp/gstrtpvorbisdepay.c @@ -90,10 +90,10 @@ gst_rtp_vorbis_depay_class_init (GstRtpVorbisDepayClass * klass) gstrtpbasedepayload_class->process_rtp_packet = gst_rtp_vorbis_depay_process; gstrtpbasedepayload_class->set_caps = gst_rtp_vorbis_depay_setcaps; - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_vorbis_depay_sink_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_vorbis_depay_src_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_vorbis_depay_sink_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_vorbis_depay_src_template); gst_element_class_set_static_metadata (gstelement_class, "RTP Vorbis depayloader", "Codec/Depayloader/Network/RTP", diff --git a/gst/rtp/gstrtpvorbispay.c b/gst/rtp/gstrtpvorbispay.c index 2557bb51e4..1a698c0c0b 100644 --- a/gst/rtp/gstrtpvorbispay.c +++ b/gst/rtp/gstrtpvorbispay.c @@ -110,10 +110,10 @@ gst_rtp_vorbis_pay_class_init (GstRtpVorbisPayClass * klass) gobject_class->set_property = gst_rtp_vorbis_pay_set_property; gobject_class->get_property = gst_rtp_vorbis_pay_get_property; - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_vorbis_pay_src_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_vorbis_pay_sink_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_vorbis_pay_src_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_vorbis_pay_sink_template); gst_element_class_set_static_metadata (gstelement_class, "RTP Vorbis payloader", diff --git a/gst/rtp/gstrtpvp8depay.c b/gst/rtp/gstrtpvp8depay.c index 4357a5f3d4..9fb631a8c9 100644 --- a/gst/rtp/gstrtpvp8depay.c +++ b/gst/rtp/gstrtpvp8depay.c @@ -73,10 +73,10 @@ gst_rtp_vp8_depay_class_init (GstRtpVP8DepayClass * gst_rtp_vp8_depay_class) (GstRTPBaseDepayloadClass *) (gst_rtp_vp8_depay_class); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_rtp_vp8_depay_sink_template)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_rtp_vp8_depay_src_template)); + gst_element_class_add_static_pad_template (element_class, + &gst_rtp_vp8_depay_sink_template); + gst_element_class_add_static_pad_template (element_class, + &gst_rtp_vp8_depay_src_template); gst_element_class_set_static_metadata (element_class, "RTP VP8 depayloader", "Codec/Depayloader/Network/RTP", diff --git a/gst/rtp/gstrtpvp8pay.c b/gst/rtp/gstrtpvp8pay.c index d7576ab4b5..c5494d0bc7 100644 --- a/gst/rtp/gstrtpvp8pay.c +++ b/gst/rtp/gstrtpvp8pay.c @@ -119,10 +119,10 @@ gst_rtp_vp8_pay_class_init (GstRtpVP8PayClass * gst_rtp_vp8_pay_class) GST_TYPE_RTP_VP8_PAY_PICTURE_ID_MODE, DEFAULT_PICTURE_ID_MODE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_rtp_vp8_pay_sink_template)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_rtp_vp8_pay_src_template)); + gst_element_class_add_static_pad_template (element_class, + &gst_rtp_vp8_pay_sink_template); + gst_element_class_add_static_pad_template (element_class, + &gst_rtp_vp8_pay_src_template); gst_element_class_set_static_metadata (element_class, "RTP VP8 payloader", "Codec/Payloader/Network/RTP", diff --git a/gst/rtp/gstrtpvp9depay.c b/gst/rtp/gstrtpvp9depay.c index 8624192a49..42e848990e 100644 --- a/gst/rtp/gstrtpvp9depay.c +++ b/gst/rtp/gstrtpvp9depay.c @@ -74,10 +74,10 @@ gst_rtp_vp9_depay_class_init (GstRtpVP9DepayClass * gst_rtp_vp9_depay_class) (GstRTPBaseDepayloadClass *) (gst_rtp_vp9_depay_class); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_rtp_vp9_depay_sink_template)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_rtp_vp9_depay_src_template)); + gst_element_class_add_static_pad_template (element_class, + &gst_rtp_vp9_depay_sink_template); + gst_element_class_add_static_pad_template (element_class, + &gst_rtp_vp9_depay_src_template); gst_element_class_set_static_metadata (element_class, "RTP VP9 depayloader", "Codec/Depayloader/Network/RTP", diff --git a/gst/rtp/gstrtpvp9pay.c b/gst/rtp/gstrtpvp9pay.c index 9f80fe5ca6..945affbce0 100644 --- a/gst/rtp/gstrtpvp9pay.c +++ b/gst/rtp/gstrtpvp9pay.c @@ -120,10 +120,10 @@ gst_rtp_vp9_pay_class_init (GstRtpVP9PayClass * gst_rtp_vp9_pay_class) GST_TYPE_RTP_VP9_PAY_PICTURE_ID_MODE, DEFAULT_PICTURE_ID_MODE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_rtp_vp9_pay_sink_template)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_rtp_vp9_pay_src_template)); + gst_element_class_add_static_pad_template (element_class, + &gst_rtp_vp9_pay_sink_template); + gst_element_class_add_static_pad_template (element_class, + &gst_rtp_vp9_pay_src_template); gst_element_class_set_static_metadata (element_class, "RTP VP9 payloader", "Codec/Payloader/Network/RTP", diff --git a/gst/rtp/gstrtpvrawdepay.c b/gst/rtp/gstrtpvrawdepay.c index b5e6dfd724..28848fbf01 100644 --- a/gst/rtp/gstrtpvrawdepay.c +++ b/gst/rtp/gstrtpvrawdepay.c @@ -88,10 +88,10 @@ gst_rtp_vraw_depay_class_init (GstRtpVRawDepayClass * klass) gst_rtp_vraw_depay_process_packet; gstrtpbasedepayload_class->handle_event = gst_rtp_vraw_depay_handle_event; - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_vraw_depay_src_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_vraw_depay_sink_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_vraw_depay_src_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_vraw_depay_sink_template); gst_element_class_set_static_metadata (gstelement_class, "RTP Raw Video depayloader", "Codec/Depayloader/Network/RTP", diff --git a/gst/rtp/gstrtpvrawpay.c b/gst/rtp/gstrtpvrawpay.c index 0843486c67..19367434bb 100644 --- a/gst/rtp/gstrtpvrawpay.c +++ b/gst/rtp/gstrtpvrawpay.c @@ -110,10 +110,10 @@ G_DEFINE_TYPE (GstRtpVRawPay, gst_rtp_vraw_pay, GST_TYPE_RTP_BASE_PAYLOAD) gstrtpbasepayload_class->set_caps = gst_rtp_vraw_pay_setcaps; gstrtpbasepayload_class->handle_buffer = gst_rtp_vraw_pay_handle_buffer; - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_vraw_pay_src_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_vraw_pay_sink_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_vraw_pay_src_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_vraw_pay_sink_template); gst_element_class_set_static_metadata (gstelement_class, "RTP Raw Video payloader", "Codec/Payloader/Network/RTP", diff --git a/gst/rtpmanager/gstrtpbin.c b/gst/rtpmanager/gstrtpbin.c index b62775729a..9a0d201646 100644 --- a/gst/rtpmanager/gstrtpbin.c +++ b/gst/rtpmanager/gstrtpbin.c @@ -2320,20 +2320,20 @@ gst_rtp_bin_class_init (GstRtpBinClass * klass) gstelement_class->release_pad = GST_DEBUG_FUNCPTR (gst_rtp_bin_release_pad); /* sink pads */ - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&rtpbin_recv_rtp_sink_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&rtpbin_recv_rtcp_sink_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&rtpbin_send_rtp_sink_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &rtpbin_recv_rtp_sink_template); + gst_element_class_add_static_pad_template (gstelement_class, + &rtpbin_recv_rtcp_sink_template); + gst_element_class_add_static_pad_template (gstelement_class, + &rtpbin_send_rtp_sink_template); /* src pads */ - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&rtpbin_recv_rtp_src_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&rtpbin_send_rtcp_src_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&rtpbin_send_rtp_src_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &rtpbin_recv_rtp_src_template); + gst_element_class_add_static_pad_template (gstelement_class, + &rtpbin_send_rtcp_src_template); + gst_element_class_add_static_pad_template (gstelement_class, + &rtpbin_send_rtp_src_template); gst_element_class_set_static_metadata (gstelement_class, "RTP Bin", "Filter/Network/RTP", diff --git a/gst/rtpmanager/gstrtpdtmfmux.c b/gst/rtpmanager/gstrtpdtmfmux.c index 9a9c5d9018..cc6d747569 100644 --- a/gst/rtpmanager/gstrtpdtmfmux.c +++ b/gst/rtpmanager/gstrtpdtmfmux.c @@ -84,8 +84,8 @@ gst_rtp_dtmf_mux_class_init (GstRTPDTMFMuxClass * klass) gstelement_class = (GstElementClass *) klass; gstrtpmux_class = (GstRTPMuxClass *) klass; - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&priority_sink_factory)); + gst_element_class_add_static_pad_template (gstelement_class, + &priority_sink_factory); gst_element_class_set_static_metadata (gstelement_class, "RTP muxer", "Codec/Muxer", diff --git a/gst/rtpmanager/gstrtpjitterbuffer.c b/gst/rtpmanager/gstrtpjitterbuffer.c index 610eff2102..65f7e149b3 100644 --- a/gst/rtpmanager/gstrtpjitterbuffer.c +++ b/gst/rtpmanager/gstrtpjitterbuffer.c @@ -821,12 +821,12 @@ gst_rtp_jitter_buffer_class_init (GstRtpJitterBufferClass * klass) gstelement_class->provide_clock = GST_DEBUG_FUNCPTR (gst_rtp_jitter_buffer_provide_clock); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_jitter_buffer_src_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_jitter_buffer_sink_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_jitter_buffer_sink_rtcp_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_jitter_buffer_src_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_jitter_buffer_sink_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_jitter_buffer_sink_rtcp_template); gst_element_class_set_static_metadata (gstelement_class, "RTP packet jitter-buffer", "Filter/Network/RTP", diff --git a/gst/rtpmanager/gstrtpmux.c b/gst/rtpmanager/gstrtpmux.c index 69cafb4797..cbb4e86b51 100644 --- a/gst/rtpmanager/gstrtpmux.c +++ b/gst/rtpmanager/gstrtpmux.c @@ -125,10 +125,8 @@ gst_rtp_mux_class_init (GstRTPMuxClass * klass) gstelement_class = (GstElementClass *) klass; - 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); gst_element_class_set_static_metadata (gstelement_class, "RTP muxer", "Codec/Muxer", diff --git a/gst/rtpmanager/gstrtpptdemux.c b/gst/rtpmanager/gstrtpptdemux.c index d764bee69f..9020a44127 100644 --- a/gst/rtpmanager/gstrtpptdemux.c +++ b/gst/rtpmanager/gstrtpptdemux.c @@ -206,10 +206,10 @@ gst_rtp_pt_demux_class_init (GstRtpPtDemuxClass * klass) klass->clear_pt_map = GST_DEBUG_FUNCPTR (gst_rtp_pt_demux_clear_pt_map); - gst_element_class_add_pad_template (gstelement_klass, - gst_static_pad_template_get (&rtp_pt_demux_sink_template)); - gst_element_class_add_pad_template (gstelement_klass, - gst_static_pad_template_get (&rtp_pt_demux_src_template)); + gst_element_class_add_static_pad_template (gstelement_klass, + &rtp_pt_demux_sink_template); + gst_element_class_add_static_pad_template (gstelement_klass, + &rtp_pt_demux_src_template); gst_element_class_set_static_metadata (gstelement_klass, "RTP Demux", "Demux/Network/RTP", diff --git a/gst/rtpmanager/gstrtprtxqueue.c b/gst/rtpmanager/gstrtprtxqueue.c index 0566f74a64..2b1c544572 100644 --- a/gst/rtpmanager/gstrtprtxqueue.c +++ b/gst/rtpmanager/gstrtprtxqueue.c @@ -101,10 +101,8 @@ gst_rtp_rtx_queue_class_init (GstRTPRtxQueueClass * klass) DEFAULT_MAX_SIZE_PACKETS, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); - 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); gst_element_class_set_static_metadata (gstelement_class, "RTP Retransmission Queue", "Codec", diff --git a/gst/rtpmanager/gstrtprtxreceive.c b/gst/rtpmanager/gstrtprtxreceive.c index 477372246f..a667d1076a 100644 --- a/gst/rtpmanager/gstrtprtxreceive.c +++ b/gst/rtpmanager/gstrtprtxreceive.c @@ -198,10 +198,8 @@ gst_rtp_rtx_receive_class_init (GstRtpRtxReceiveClass * klass) "correctly associated with retransmission requests", 0, G_MAXUINT, 0, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); - 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); gst_element_class_set_static_metadata (gstelement_class, "RTP Retransmission receiver", "Codec", diff --git a/gst/rtpmanager/gstrtprtxsend.c b/gst/rtpmanager/gstrtprtxsend.c index 54c0a0c587..5fb400d766 100644 --- a/gst/rtpmanager/gstrtprtxsend.c +++ b/gst/rtpmanager/gstrtprtxsend.c @@ -191,10 +191,8 @@ gst_rtp_rtx_send_class_init (GstRtpRtxSendClass * klass) " Number of retransmission packets sent", 0, G_MAXUINT, 0, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); - 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); gst_element_class_set_static_metadata (gstelement_class, "RTP Retransmission Sender", "Codec", diff --git a/gst/rtpmanager/gstrtpsession.c b/gst/rtpmanager/gstrtpsession.c index 4c41c5d915..ea19ce8804 100644 --- a/gst/rtpmanager/gstrtpsession.c +++ b/gst/rtpmanager/gstrtpsession.c @@ -773,22 +773,22 @@ gst_rtp_session_class_init (GstRtpSessionClass * klass) klass->clear_pt_map = GST_DEBUG_FUNCPTR (gst_rtp_session_clear_pt_map); /* sink pads */ - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&rtpsession_recv_rtp_sink_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&rtpsession_recv_rtcp_sink_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&rtpsession_send_rtp_sink_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &rtpsession_recv_rtp_sink_template); + gst_element_class_add_static_pad_template (gstelement_class, + &rtpsession_recv_rtcp_sink_template); + gst_element_class_add_static_pad_template (gstelement_class, + &rtpsession_send_rtp_sink_template); /* src pads */ - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&rtpsession_recv_rtp_src_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&rtpsession_sync_src_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&rtpsession_send_rtp_src_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&rtpsession_send_rtcp_src_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &rtpsession_recv_rtp_src_template); + gst_element_class_add_static_pad_template (gstelement_class, + &rtpsession_sync_src_template); + gst_element_class_add_static_pad_template (gstelement_class, + &rtpsession_send_rtp_src_template); + gst_element_class_add_static_pad_template (gstelement_class, + &rtpsession_send_rtcp_src_template); gst_element_class_set_static_metadata (gstelement_class, "RTP Session", "Filter/Network/RTP", diff --git a/gst/rtpmanager/gstrtpssrcdemux.c b/gst/rtpmanager/gstrtpssrcdemux.c index 762e959fbf..c4a3c43012 100644 --- a/gst/rtpmanager/gstrtpssrcdemux.c +++ b/gst/rtpmanager/gstrtpssrcdemux.c @@ -421,14 +421,14 @@ gst_rtp_ssrc_demux_class_init (GstRtpSsrcDemuxClass * klass) gstrtpssrcdemux_klass->clear_ssrc = GST_DEBUG_FUNCPTR (gst_rtp_ssrc_demux_clear_ssrc); - gst_element_class_add_pad_template (gstelement_klass, - gst_static_pad_template_get (&rtp_ssrc_demux_sink_template)); - gst_element_class_add_pad_template (gstelement_klass, - gst_static_pad_template_get (&rtp_ssrc_demux_rtcp_sink_template)); - gst_element_class_add_pad_template (gstelement_klass, - gst_static_pad_template_get (&rtp_ssrc_demux_src_template)); - gst_element_class_add_pad_template (gstelement_klass, - gst_static_pad_template_get (&rtp_ssrc_demux_rtcp_src_template)); + gst_element_class_add_static_pad_template (gstelement_klass, + &rtp_ssrc_demux_sink_template); + gst_element_class_add_static_pad_template (gstelement_klass, + &rtp_ssrc_demux_rtcp_sink_template); + gst_element_class_add_static_pad_template (gstelement_klass, + &rtp_ssrc_demux_src_template); + gst_element_class_add_static_pad_template (gstelement_klass, + &rtp_ssrc_demux_rtcp_src_template); gst_element_class_set_static_metadata (gstelement_klass, "RTP SSRC Demux", "Demux/Network/RTP", diff --git a/gst/rtsp/gstrtpdec.c b/gst/rtsp/gstrtpdec.c index e24927bf49..5813dbe67e 100644 --- a/gst/rtsp/gstrtpdec.c +++ b/gst/rtsp/gstrtpdec.c @@ -325,15 +325,15 @@ gst_rtp_dec_class_init (GstRTPDecClass * g_class) gstelement_class->release_pad = GST_DEBUG_FUNCPTR (gst_rtp_dec_release_pad); /* sink pads */ - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_dec_recv_rtp_sink_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_dec_recv_rtcp_sink_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_dec_recv_rtp_sink_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_dec_recv_rtcp_sink_template); /* src pads */ - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_dec_recv_rtp_src_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_rtp_dec_rtcp_src_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_dec_recv_rtp_src_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_rtp_dec_rtcp_src_template); gst_element_class_set_static_metadata (gstelement_class, "RTP Decoder", "Codec/Parser/Network", diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c index 8ff50652a5..b41666d5bc 100644 --- a/gst/rtsp/gstrtspsrc.c +++ b/gst/rtsp/gstrtspsrc.c @@ -828,8 +828,7 @@ gst_rtspsrc_class_init (GstRTSPSrcClass * klass) gstelement_class->provide_clock = gst_rtspsrc_provide_clock; gstelement_class->change_state = gst_rtspsrc_change_state; - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&rtptemplate)); + gst_element_class_add_static_pad_template (gstelement_class, &rtptemplate); gst_element_class_set_static_metadata (gstelement_class, "RTSP packet receiver", "Source/Network", diff --git a/gst/shapewipe/gstshapewipe.c b/gst/shapewipe/gstshapewipe.c index 1a82a504cc..3a0dfdaaf8 100644 --- a/gst/shapewipe/gstshapewipe.c +++ b/gst/shapewipe/gstshapewipe.c @@ -156,12 +156,12 @@ gst_shape_wipe_class_init (GstShapeWipeClass * klass) "Adds a shape wipe transition to a video stream", "Sebastian Dröge "); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&video_sink_pad_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&mask_sink_pad_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&src_pad_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &video_sink_pad_template); + gst_element_class_add_static_pad_template (gstelement_class, + &mask_sink_pad_template); + gst_element_class_add_static_pad_template (gstelement_class, + &src_pad_template); } static void diff --git a/gst/smpte/gstsmpte.c b/gst/smpte/gstsmpte.c index 33d4284279..18c522c8d2 100644 --- a/gst/smpte/gstsmpte.c +++ b/gst/smpte/gstsmpte.c @@ -189,12 +189,12 @@ gst_smpte_class_init (GstSMPTEClass * klass) gstelement_class->change_state = GST_DEBUG_FUNCPTR (gst_smpte_change_state); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_smpte_sink1_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_smpte_sink2_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_smpte_src_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_smpte_sink1_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_smpte_sink2_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_smpte_src_template); gst_element_class_set_static_metadata (gstelement_class, "SMPTE transitions", "Filter/Editor/Video", "Apply the standard SMPTE transitions on video images", diff --git a/gst/smpte/gstsmptealpha.c b/gst/smpte/gstsmptealpha.c index 06c56aece2..750748f25c 100644 --- a/gst/smpte/gstsmptealpha.c +++ b/gst/smpte/gstsmptealpha.c @@ -205,10 +205,10 @@ gst_smpte_alpha_class_init (GstSMPTEAlphaClass * klass) vfilter_class->transform_frame = GST_DEBUG_FUNCPTR (gst_smpte_alpha_transform_frame); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_smpte_alpha_sink_template)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_smpte_alpha_src_template)); + gst_element_class_add_static_pad_template (element_class, + &gst_smpte_alpha_sink_template); + gst_element_class_add_static_pad_template (element_class, + &gst_smpte_alpha_src_template); gst_element_class_set_static_metadata (element_class, "SMPTE transitions", "Filter/Editor/Video", "Apply the standard SMPTE transitions as alpha on video images", diff --git a/gst/udp/gstdynudpsink.c b/gst/udp/gstdynudpsink.c index f9cd5a2589..78e6d75c7a 100644 --- a/gst/udp/gstdynudpsink.c +++ b/gst/udp/gstdynudpsink.c @@ -130,8 +130,7 @@ gst_dynudpsink_class_init (GstDynUDPSinkClass * klass) "Port to bind the socket to", 0, G_MAXUINT16, UDP_DEFAULT_BIND_PORT, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); - 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); gst_element_class_set_static_metadata (gstelement_class, "UDP packet sender", "Sink/Network", diff --git a/gst/udp/gstmultiudpsink.c b/gst/udp/gstmultiudpsink.c index 905e3fddc7..656296ad47 100644 --- a/gst/udp/gstmultiudpsink.c +++ b/gst/udp/gstmultiudpsink.c @@ -350,8 +350,7 @@ gst_multiudpsink_class_init (GstMultiUDPSinkClass * klass) "Port to bind the socket to", 0, G_MAXUINT16, DEFAULT_BIND_PORT, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); - 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); gst_element_class_set_static_metadata (gstelement_class, "UDP packet sender", "Sink/Network", diff --git a/gst/udp/gstudpsrc.c b/gst/udp/gstudpsrc.c index 1525b0505e..904090461b 100644 --- a/gst/udp/gstudpsrc.c +++ b/gst/udp/gstudpsrc.c @@ -274,8 +274,7 @@ gst_udpsrc_class_init (GstUDPSrcClass * klass) " FALSE = disable", UDP_DEFAULT_LOOP, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&src_template)); + gst_element_class_add_static_pad_template (gstelement_class, &src_template); gst_element_class_set_static_metadata (gstelement_class, "UDP packet receiver", "Source/Network", diff --git a/gst/videobox/gstvideobox.c b/gst/videobox/gstvideobox.c index 4c0ed36e1c..f8f984c5a8 100644 --- a/gst/videobox/gstvideobox.c +++ b/gst/videobox/gstvideobox.c @@ -2528,10 +2528,10 @@ gst_video_box_class_init (GstVideoBoxClass * klass) "Resizes a video by adding borders or cropping", "Wim Taymans "); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_video_box_sink_template)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_video_box_src_template)); + gst_element_class_add_static_pad_template (element_class, + &gst_video_box_sink_template); + gst_element_class_add_static_pad_template (element_class, + &gst_video_box_src_template); } static void diff --git a/gst/videocrop/gstaspectratiocrop.c b/gst/videocrop/gstaspectratiocrop.c index 037d326451..2c1d9d774c 100644 --- a/gst/videocrop/gstaspectratiocrop.c +++ b/gst/videocrop/gstaspectratiocrop.c @@ -193,10 +193,8 @@ gst_aspect_ratio_crop_class_init (GstAspectRatioCropClass * klass) "Crops video into a user-defined aspect-ratio", "Thijs Vermeir "); - 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); } static void diff --git a/gst/videocrop/gstvideocrop.c b/gst/videocrop/gstvideocrop.c index 99360d5dd9..511161e914 100644 --- a/gst/videocrop/gstvideocrop.c +++ b/gst/videocrop/gstvideocrop.c @@ -194,10 +194,8 @@ gst_video_crop_class_init (GstVideoCropClass * klass) "Pixels to crop at bottom (-1 to auto-crop)", -1, G_MAXINT, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); - 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_static_metadata (element_class, "Crop", "Filter/Effect/Video", "Crops video into a user-defined region", diff --git a/gst/videofilter/gstgamma.c b/gst/videofilter/gstgamma.c index 0e143b6482..fd4409f339 100644 --- a/gst/videofilter/gstgamma.c +++ b/gst/videofilter/gstgamma.c @@ -125,10 +125,10 @@ gst_gamma_class_init (GstGammaClass * g_class) "Video gamma correction", "Filter/Effect/Video", "Adjusts gamma on a video stream", "Arwed v. Merkatz before_transform = GST_DEBUG_FUNCPTR (gst_gamma_before_transform); diff --git a/gst/videofilter/gstvideobalance.c b/gst/videofilter/gstvideobalance.c index 49cad5177e..068bcd7bc3 100644 --- a/gst/videofilter/gstvideobalance.c +++ b/gst/videofilter/gstvideobalance.c @@ -598,10 +598,10 @@ gst_video_balance_class_init (GstVideoBalanceClass * klass) "Adjusts brightness, contrast, hue, saturation on a video stream", "David Schleef "); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_video_balance_sink_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_video_balance_src_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_video_balance_sink_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_video_balance_src_template); trans_class->before_transform = GST_DEBUG_FUNCPTR (gst_video_balance_before_transform); diff --git a/gst/videofilter/gstvideoflip.c b/gst/videofilter/gstvideoflip.c index 2111cef38e..beccd9d1a9 100644 --- a/gst/videofilter/gstvideoflip.c +++ b/gst/videofilter/gstvideoflip.c @@ -1284,10 +1284,10 @@ gst_video_flip_class_init (GstVideoFlipClass * klass) "Filter/Effect/Video", "Flips and rotates video", "David Schleef "); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_video_flip_sink_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_video_flip_src_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_video_flip_sink_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_video_flip_src_template); trans_class->transform_caps = GST_DEBUG_FUNCPTR (gst_video_flip_transform_caps); diff --git a/gst/videofilter/gstvideomedian.c b/gst/videofilter/gstvideomedian.c index a78939a9dc..042cd23b1c 100644 --- a/gst/videofilter/gstvideomedian.c +++ b/gst/videofilter/gstvideomedian.c @@ -109,13 +109,12 @@ gst_video_median_class_init (GstVideoMedianClass * klass) "luminance", DEFAULT_LUM_ONLY, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&video_median_sink_factory)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&video_median_src_factory)); + gst_element_class_add_static_pad_template (gstelement_class, + &video_median_sink_factory); + gst_element_class_add_static_pad_template (gstelement_class, + &video_median_src_factory); gst_element_class_set_static_metadata (gstelement_class, "Median effect", - "Filter/Effect/Video", - "Apply a median filter to an image", + "Filter/Effect/Video", "Apply a median filter to an image", "Wim Taymans "); vfilter_class->transform_frame = diff --git a/gst/videomixer/videomixer2.c b/gst/videomixer/videomixer2.c index 25fc35ae3a..3129634d4c 100644 --- a/gst/videomixer/videomixer2.c +++ b/gst/videomixer/videomixer2.c @@ -2222,10 +2222,8 @@ gst_videomixer2_class_init (GstVideoMixer2Class * klass) gstelement_class->change_state = GST_DEBUG_FUNCPTR (gst_videomixer2_change_state); - 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); gst_element_class_set_static_metadata (gstelement_class, "Video mixer 2", "Filter/Editor/Video/Compositor", diff --git a/gst/wavenc/gstwavenc.c b/gst/wavenc/gstwavenc.c index aff717fdbb..94a8bd0d0d 100644 --- a/gst/wavenc/gstwavenc.c +++ b/gst/wavenc/gstwavenc.c @@ -139,10 +139,8 @@ gst_wavenc_class_init (GstWavEncClass * klass) "Codec/Muxer/Audio", "Encode raw audio into WAV", "Iain Holmes "); - 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_DEBUG_CATEGORY_INIT (wavenc_debug, "wavenc", 0, "WAV encoder element"); } diff --git a/gst/wavparse/gstwavparse.c b/gst/wavparse/gstwavparse.c index 138ec1646f..16483b7e50 100644 --- a/gst/wavparse/gstwavparse.c +++ b/gst/wavparse/gstwavparse.c @@ -188,8 +188,8 @@ gst_wavparse_class_init (GstWavParseClass * klass) gstelement_class->send_event = gst_wavparse_send_event; /* register pads */ - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&sink_template_factory)); + gst_element_class_add_static_pad_template (gstelement_class, + &sink_template_factory); src_template = gst_pad_template_new ("src", GST_PAD_SRC, GST_PAD_ALWAYS, gst_riff_create_audio_template_caps ()); diff --git a/gst/y4m/gsty4mencode.c b/gst/y4m/gsty4mencode.c index 7c32af22f0..2a113bc935 100644 --- a/gst/y4m/gsty4mencode.c +++ b/gst/y4m/gsty4mencode.c @@ -97,10 +97,10 @@ gst_y4m_encode_class_init (GstY4mEncodeClass * klass) element_class->change_state = GST_DEBUG_FUNCPTR (gst_y4m_encode_change_state); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&y4mencode_src_factory)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&y4mencode_sink_factory)); + gst_element_class_add_static_pad_template (element_class, + &y4mencode_src_factory); + gst_element_class_add_static_pad_template (element_class, + &y4mencode_sink_factory); gst_element_class_set_static_metadata (element_class, "YUV4MPEG video encoder", "Codec/Encoder/Video", diff --git a/sys/directsound/gstdirectsoundsink.c b/sys/directsound/gstdirectsoundsink.c index c61e5e141a..0f299ae2db 100644 --- a/sys/directsound/gstdirectsoundsink.c +++ b/sys/directsound/gstdirectsoundsink.c @@ -208,8 +208,8 @@ gst_directsound_sink_class_init (GstDirectSoundSinkClass * klass) "Output to a sound card via Direct Sound", "Sebastien Moutte "); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&directsoundsink_sink_factory)); + gst_element_class_add_static_pad_template (element_class, + &directsoundsink_sink_factory); } static void diff --git a/sys/oss/gstosssink.c b/sys/oss/gstosssink.c index 3ee3c2a37d..2e6b8c5c7a 100644 --- a/sys/oss/gstosssink.c +++ b/sys/oss/gstosssink.c @@ -183,8 +183,8 @@ gst_oss_sink_class_init (GstOssSinkClass * klass) "Erik Walthinsen , " "Wim Taymans "); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&osssink_sink_factory)); + gst_element_class_add_static_pad_template (gstelement_class, + &osssink_sink_factory); } static void diff --git a/sys/oss/gstosssrc.c b/sys/oss/gstosssrc.c index 60c9e05344..4923ad26de 100644 --- a/sys/oss/gstosssrc.c +++ b/sys/oss/gstosssrc.c @@ -167,8 +167,8 @@ gst_oss_src_class_init (GstOssSrcClass * klass) "Capture from a sound card via OSS", "Erik Walthinsen , " "Wim Taymans "); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&osssrc_src_factory)); + gst_element_class_add_static_pad_template (gstelement_class, + &osssrc_src_factory); } static void diff --git a/sys/osxaudio/gstosxaudiosink.c b/sys/osxaudio/gstosxaudiosink.c index b0a3431b3a..3e9b07cadf 100644 --- a/sys/osxaudio/gstosxaudiosink.c +++ b/sys/osxaudio/gstosxaudiosink.c @@ -195,8 +195,7 @@ gst_osx_audio_sink_class_init (GstOsxAudioSinkClass * klass) gstaudiobasesink_class->payload = GST_DEBUG_FUNCPTR (gst_osx_audio_sink_sink_payload); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&sink_factory)); + gst_element_class_add_static_pad_template (gstelement_class, &sink_factory); gst_element_class_set_static_metadata (gstelement_class, "Audio Sink (OSX)", "Sink/Audio", diff --git a/sys/osxaudio/gstosxaudiosrc.c b/sys/osxaudio/gstosxaudiosrc.c index 0deda90a9c..0c1cfbe5c9 100644 --- a/sys/osxaudio/gstosxaudiosrc.c +++ b/sys/osxaudio/gstosxaudiosrc.c @@ -155,8 +155,7 @@ gst_osx_audio_src_class_init (GstOsxAudioSrcClass * klass) gstaudiobasesrc_class->create_ringbuffer = GST_DEBUG_FUNCPTR (gst_osx_audio_src_create_ringbuffer); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&src_factory)); + gst_element_class_add_static_pad_template (gstelement_class, &src_factory); gst_element_class_set_static_metadata (gstelement_class, "Audio Source (OSX)", "Source/Audio", diff --git a/sys/osxvideo/osxvideosink.m b/sys/osxvideo/osxvideosink.m index 486ae7ab3c..152c6e8e1c 100644 --- a/sys/osxvideo/osxvideosink.m +++ b/sys/osxvideo/osxvideosink.m @@ -520,8 +520,7 @@ gst_osx_video_sink_base_init (gpointer g_class) "Sink/Video", "OSX native videosink", "Zaheer Abbas Merali "); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_osx_video_sink_sink_template_factory)); + gst_element_class_add_static_pad_template (element_class, &gst_osx_video_sink_sink_template_factory); } static void diff --git a/sys/sunaudio/gstsunaudiosink.c b/sys/sunaudio/gstsunaudiosink.c index 99e08eaed0..4073068b96 100644 --- a/sys/sunaudio/gstsunaudiosink.c +++ b/sys/sunaudio/gstsunaudiosink.c @@ -146,11 +146,10 @@ gst_sunaudiosink_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_sunaudiosink_factory)); + gst_element_class_add_static_pad_template (element_class, + &gst_sunaudiosink_factory); gst_element_class_set_static_metadata (element_class, "Sun Audio Sink", - "Sink/Audio", - "Audio sink for Sun Audio devices", + "Sink/Audio", "Audio sink for Sun Audio devices", "David A. Schleef , " "Brian Cameron "); } diff --git a/sys/sunaudio/gstsunaudiosrc.c b/sys/sunaudio/gstsunaudiosrc.c index 0f454bf8ee..79cc4e9c58 100644 --- a/sys/sunaudio/gstsunaudiosrc.c +++ b/sys/sunaudio/gstsunaudiosrc.c @@ -108,11 +108,10 @@ gst_sunaudiosrc_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_sunaudiosrc_factory)); + gst_element_class_add_static_pad_template (element_class, + &gst_sunaudiosrc_factory); gst_element_class_set_static_metadata (element_class, "Sun Audio Source", - "Source/Audio", - "Audio source for Sun Audio devices", + "Source/Audio", "Audio source for Sun Audio devices", "Brian Cameron "); } diff --git a/sys/waveform/gstwaveformsink.c b/sys/waveform/gstwaveformsink.c index 9341475554..30b2ad548e 100644 --- a/sys/waveform/gstwaveformsink.c +++ b/sys/waveform/gstwaveformsink.c @@ -130,8 +130,8 @@ gst_waveform_sink_class_init (GstWaveFormSinkClass * klass) "Output to a sound card via WaveForm API", "Sebastien Moutte "); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&waveformsink_sink_factory)); + gst_element_class_add_static_pad_template (element_class, + &waveformsink_sink_factory); } static void diff --git a/sys/ximage/gstximagesrc.c b/sys/ximage/gstximagesrc.c index 93f8f47b9a..8aad4e2fd4 100644 --- a/sys/ximage/gstximagesrc.c +++ b/sys/ximage/gstximagesrc.c @@ -1287,7 +1287,7 @@ gst_ximage_src_class_init (GstXImageSrcClass * klass) "Lutz Mueller , " "Jan Schmidt , " "Zaheer Merali "); - gst_element_class_add_pad_template (ec, gst_static_pad_template_get (&t)); + gst_element_class_add_static_pad_template (ec, &t); bc->fixate = gst_ximage_src_fixate; bc->get_caps = gst_ximage_src_get_caps; diff --git a/tests/check/elements/autodetect.c b/tests/check/elements/autodetect.c index 578627cd61..eb36977690 100644 --- a/tests/check/elements/autodetect.c +++ b/tests/check/elements/autodetect.c @@ -45,8 +45,7 @@ gst_fake_audio_sink_class_init (GstFakeAudioSinkClass * klass) gst_element_class_set_static_metadata (gstelement_class, "Fake Audio Sink", "Sink/Audio", "Audio sink fake for testing", "Stefan Sauer"); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&pad_template)); + gst_element_class_add_static_pad_template (gstelement_class, &pad_template); } static void @@ -70,8 +69,7 @@ gst_fake_video_sink_class_init (GstFakeVideoSinkClass * klass) gst_element_class_set_static_metadata (gstelement_class, "Fake Video Sink", "Sink/Video", "Video sink fake for testing", "Stefan Sauer"); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&pad_template)); + gst_element_class_add_static_pad_template (gstelement_class, &pad_template); } static void diff --git a/tests/check/elements/qtmux.c b/tests/check/elements/qtmux.c index ff8b07b104..a552d43076 100644 --- a/tests/check/elements/qtmux.c +++ b/tests/check/elements/qtmux.c @@ -671,10 +671,8 @@ test_mp3_enc_class_init (TestMp3EncClass * 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_metadata (element_class, "MPEG1 Audio Encoder", "Codec/Encoder/Audio", "Pretends to encode mp3", "Foo Bar ");