Commit e09ae573 authored by Tim-Philipp Müller's avatar Tim-Philipp Müller

Use new gst_element_class_set_static_metadata()

parent be9baf1a
...@@ -212,7 +212,7 @@ gst_aasink_class_init (GstAASinkClass * klass) ...@@ -212,7 +212,7 @@ gst_aasink_class_init (GstAASinkClass * klass)
gst_element_class_add_pad_template (gstelement_class, gst_element_class_add_pad_template (gstelement_class,
gst_static_pad_template_get (&sink_template)); gst_static_pad_template_get (&sink_template));
gst_element_class_set_details_simple (gstelement_class, gst_element_class_set_static_metadata (gstelement_class,
"ASCII art video sink", "Sink/Video", "An ASCII art videosink", "ASCII art video sink", "Sink/Video", "An ASCII art videosink",
"Wim Taymans <wim.taymans@chello.be>"); "Wim Taymans <wim.taymans@chello.be>");
......
...@@ -145,7 +145,7 @@ gst_cmml_dec_class_init (GstCmmlDecClass * klass) ...@@ -145,7 +145,7 @@ gst_cmml_dec_class_init (GstCmmlDecClass * klass)
gst_static_pad_template_get (&gst_cmml_dec_sink_factory)); gst_static_pad_template_get (&gst_cmml_dec_sink_factory));
gst_element_class_add_pad_template (element_class, gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_cmml_dec_src_factory)); gst_static_pad_template_get (&gst_cmml_dec_src_factory));
gst_element_class_set_details_simple (element_class, "CMML stream decoder", gst_element_class_set_static_metadata (element_class, "CMML stream decoder",
"Codec/Decoder", "Codec/Decoder",
"Decodes CMML streams", "Alessandro Decina <alessandro@nnva.org>"); "Decodes CMML streams", "Alessandro Decina <alessandro@nnva.org>");
} }
......
...@@ -144,7 +144,7 @@ gst_cmml_enc_class_init (GstCmmlEncClass * enc_class) ...@@ -144,7 +144,7 @@ gst_cmml_enc_class_init (GstCmmlEncClass * enc_class)
gst_static_pad_template_get (&gst_cmml_enc_sink_factory)); gst_static_pad_template_get (&gst_cmml_enc_sink_factory));
gst_element_class_add_pad_template (element_class, gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_cmml_enc_src_factory)); gst_static_pad_template_get (&gst_cmml_enc_src_factory));
gst_element_class_set_details_simple (element_class, "CMML streams encoder", gst_element_class_set_static_metadata (element_class, "CMML streams encoder",
"Codec/Encoder", "Codec/Encoder",
"Encodes CMML streams", "Alessandro Decina <alessandro@nnva.org>"); "Encodes CMML streams", "Alessandro Decina <alessandro@nnva.org>");
} }
......
...@@ -189,7 +189,7 @@ gst_cairo_overlay_base_init (gpointer g_class) ...@@ -189,7 +189,7 @@ gst_cairo_overlay_base_init (gpointer g_class)
{ {
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class); GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_set_details_simple (element_class, "Cairo overlay", gst_element_class_set_static_metadata (element_class, "Cairo overlay",
"Filter/Editor/Video", "Filter/Editor/Video",
"Render overlay on a video stream using Cairo", "Render overlay on a video stream using Cairo",
"Jon Nordby <jononor@gmail.com>"); "Jon Nordby <jononor@gmail.com>");
......
...@@ -351,7 +351,7 @@ gst_cairo_render_base_init (gpointer g_class) ...@@ -351,7 +351,7 @@ gst_cairo_render_base_init (gpointer g_class)
{ {
GstElementClass *ec = GST_ELEMENT_CLASS (g_class); GstElementClass *ec = GST_ELEMENT_CLASS (g_class);
gst_element_class_set_details_simple (ec, "Cairo encoder", gst_element_class_set_static_metadata (ec, "Cairo encoder",
"Codec/Encoder", "Encodes streams using Cairo", "Codec/Encoder", "Encodes streams using Cairo",
"Lutz Mueller <lutz@topfrose.de>"); "Lutz Mueller <lutz@topfrose.de>");
gst_element_class_add_pad_template (ec, gst_static_pad_template_get (&t_snk)); gst_element_class_add_pad_template (ec, gst_static_pad_template_get (&t_snk));
......
...@@ -139,7 +139,7 @@ gst_text_overlay_base_init (gpointer g_class) ...@@ -139,7 +139,7 @@ gst_text_overlay_base_init (gpointer g_class)
gst_element_class_add_pad_template (element_class, gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&text_sink_template_factory)); gst_static_pad_template_get (&text_sink_template_factory));
gst_element_class_set_details_simple (element_class, "Text overlay", gst_element_class_set_static_metadata (element_class, "Text overlay",
"Filter/Editor/Video", "Filter/Editor/Video",
"Adds text strings on top of a video buffer", "Adds text strings on top of a video buffer",
"David Schleef <ds@schleef.org>"); "David Schleef <ds@schleef.org>");
......
...@@ -261,7 +261,7 @@ gst_cairo_time_overlay_base_init (gpointer g_class) ...@@ -261,7 +261,7 @@ gst_cairo_time_overlay_base_init (gpointer g_class)
{ {
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class); GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_set_details_simple (element_class, "Time overlay", gst_element_class_set_static_metadata (element_class, "Time overlay",
"Filter/Editor/Video", "Filter/Editor/Video",
"Overlays the time on a video stream", "David Schleef <ds@schleef.org>"); "Overlays the time on a video stream", "David Schleef <ds@schleef.org>");
......
...@@ -181,7 +181,7 @@ gst_dvdec_class_init (GstDVDecClass * klass) ...@@ -181,7 +181,7 @@ gst_dvdec_class_init (GstDVDecClass * klass)
gst_element_class_add_pad_template (gstelement_class, gst_element_class_add_pad_template (gstelement_class,
gst_static_pad_template_get (&src_temp)); gst_static_pad_template_get (&src_temp));
gst_element_class_set_details_simple (gstelement_class, "DV video decoder", gst_element_class_set_static_metadata (gstelement_class, "DV video decoder",
"Codec/Decoder/Video", "Codec/Decoder/Video",
"Uses libdv to decode DV video (smpte314) (libdv.sourceforge.net)", "Uses libdv to decode DV video (smpte314) (libdv.sourceforge.net)",
"Erik Walthinsen <omega@cse.ogi.edu>," "Wim Taymans <wim@fluendo.com>"); "Erik Walthinsen <omega@cse.ogi.edu>," "Wim Taymans <wim@fluendo.com>");
......
...@@ -191,7 +191,7 @@ gst_dvdemux_class_init (GstDVDemuxClass * klass) ...@@ -191,7 +191,7 @@ gst_dvdemux_class_init (GstDVDemuxClass * klass)
gst_element_class_add_pad_template (gstelement_class, gst_element_class_add_pad_template (gstelement_class,
gst_static_pad_template_get (&audio_src_temp)); gst_static_pad_template_get (&audio_src_temp));
gst_element_class_set_details_simple (gstelement_class, gst_element_class_set_static_metadata (gstelement_class,
"DV system stream demuxer", "Codec/Demuxer", "DV system stream demuxer", "Codec/Demuxer",
"Uses libdv to separate DV audio from DV video (libdv.sourceforge.net)", "Uses libdv to separate DV audio from DV video (libdv.sourceforge.net)",
"Erik Walthinsen <omega@cse.ogi.edu>, Wim Taymans <wim@fluendo.com>"); "Erik Walthinsen <omega@cse.ogi.edu>, Wim Taymans <wim@fluendo.com>");
......
...@@ -167,7 +167,7 @@ gst_flac_dec_class_init (GstFlacDecClass * klass) ...@@ -167,7 +167,7 @@ gst_flac_dec_class_init (GstFlacDecClass * klass)
gst_element_class_add_pad_template (gstelement_class, gst_element_class_add_pad_template (gstelement_class,
gst_static_pad_template_get (&flac_dec_sink_factory)); gst_static_pad_template_get (&flac_dec_sink_factory));
gst_element_class_set_details_simple (gstelement_class, "FLAC audio decoder", gst_element_class_set_static_metadata (gstelement_class, "FLAC audio decoder",
"Codec/Decoder/Audio", "Decodes FLAC lossless audio streams", "Codec/Decoder/Audio", "Decodes FLAC lossless audio streams",
"Tim-Philipp Müller <tim@centricular.net>, " "Tim-Philipp Müller <tim@centricular.net>, "
"Wim Taymans <wim.taymans@gmail.com>"); "Wim Taymans <wim.taymans@gmail.com>");
......
...@@ -367,7 +367,7 @@ gst_flac_enc_class_init (GstFlacEncClass * klass) ...@@ -367,7 +367,7 @@ gst_flac_enc_class_init (GstFlacEncClass * klass)
gst_element_class_add_pad_template (gstelement_class, gst_element_class_add_pad_template (gstelement_class,
gst_static_pad_template_get (&sink_factory)); gst_static_pad_template_get (&sink_factory));
gst_element_class_set_details_simple (gstelement_class, "FLAC audio encoder", gst_element_class_set_static_metadata (gstelement_class, "FLAC audio encoder",
"Codec/Encoder/Audio", "Codec/Encoder/Audio",
"Encodes audio with the FLAC lossless audio encoder", "Encodes audio with the FLAC lossless audio encoder",
"Wim Taymans <wim.taymans@chello.be>"); "Wim Taymans <wim.taymans@chello.be>");
......
...@@ -117,7 +117,7 @@ gst_flac_tag_class_init (GstFlacTagClass * klass) ...@@ -117,7 +117,7 @@ gst_flac_tag_class_init (GstFlacTagClass * klass)
gobject_class->dispose = gst_flac_tag_dispose; gobject_class->dispose = gst_flac_tag_dispose;
gstelement_class->change_state = gst_flac_tag_change_state; gstelement_class->change_state = gst_flac_tag_change_state;
gst_element_class_set_details_simple (gstelement_class, "FLAC tagger", gst_element_class_set_static_metadata (gstelement_class, "FLAC tagger",
"Formatter/Metadata", "Formatter/Metadata",
"Rewrite tags in a FLAC file", "Christophe Fergeau <teuf@gnome.org>"); "Rewrite tags in a FLAC file", "Christophe Fergeau <teuf@gnome.org>");
......
...@@ -192,7 +192,7 @@ gst_gdk_pixbuf_class_init (GstGdkPixbufClass * klass) ...@@ -192,7 +192,7 @@ gst_gdk_pixbuf_class_init (GstGdkPixbufClass * klass)
gst_static_pad_template_get (&gst_gdk_pixbuf_src_template)); gst_static_pad_template_get (&gst_gdk_pixbuf_src_template));
gst_element_class_add_pad_template (gstelement_class, gst_element_class_add_pad_template (gstelement_class,
gst_static_pad_template_get (&gst_gdk_pixbuf_sink_template)); gst_static_pad_template_get (&gst_gdk_pixbuf_sink_template));
gst_element_class_set_details_simple (gstelement_class, gst_element_class_set_static_metadata (gstelement_class,
"GdkPixbuf image decoder", "Codec/Decoder/Image", "GdkPixbuf image decoder", "Codec/Decoder/Image",
"Decodes images in a video stream using GdkPixbuf", "Decodes images in a video stream using GdkPixbuf",
"David A. Schleef <ds@schleef.org>, Renato Filho <renato.filho@indt.org.br>"); "David A. Schleef <ds@schleef.org>, Renato Filho <renato.filho@indt.org.br>");
......
...@@ -123,7 +123,7 @@ gst_gdk_pixbuf_overlay_base_init (gpointer g_class) ...@@ -123,7 +123,7 @@ gst_gdk_pixbuf_overlay_base_init (gpointer g_class)
gst_element_class_add_static_pad_template (element_class, &sink_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_add_static_pad_template (element_class, &src_template);
gst_element_class_set_details_simple (element_class, gst_element_class_set_static_metadata (element_class,
"GdkPixbuf Overlay", "Filter/Effect/Video", "GdkPixbuf Overlay", "Filter/Effect/Video",
"Overlay an image onto a video stream", "Overlay an image onto a video stream",
"Tim-Philipp Müller <tim centricular net>"); "Tim-Philipp Müller <tim centricular net>");
......
...@@ -142,7 +142,7 @@ gst_gdk_pixbuf_sink_class_init (GstGdkPixbufSinkClass * klass) ...@@ -142,7 +142,7 @@ gst_gdk_pixbuf_sink_class_init (GstGdkPixbufSinkClass * klass)
GstElementClass *element_class = GST_ELEMENT_CLASS (klass); GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
GObjectClass *gobject_class = G_OBJECT_CLASS (klass); GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
gst_element_class_set_details_simple (element_class, "GdkPixbuf sink", gst_element_class_set_static_metadata (element_class, "GdkPixbuf sink",
"Sink/Video", "Output images as GdkPixbuf objects in bus messages", "Sink/Video", "Output images as GdkPixbuf objects in bus messages",
"Tim-Philipp Müller <tim centricular net>"); "Tim-Philipp Müller <tim centricular net>");
......
...@@ -120,8 +120,8 @@ gst_pixbufscale_class_init (GstPixbufScaleClass * klass) ...@@ -120,8 +120,8 @@ gst_pixbufscale_class_init (GstPixbufScaleClass * klass)
trans_class = (GstBaseTransformClass *) klass; trans_class = (GstBaseTransformClass *) klass;
filter_class = (GstVideoFilterClass *) klass; filter_class = (GstVideoFilterClass *) klass;
gst_element_class_set_details_simple (element_class, "GdkPixbuf image scaler", gst_element_class_set_static_metadata (element_class,
"Filter/Effect/Video", "Resizes video", "GdkPixbuf image scaler", "Filter/Effect/Video", "Resizes video",
"Jan Schmidt <thaytan@mad.scientist.com>, " "Jan Schmidt <thaytan@mad.scientist.com>, "
"Wim Taymans <wim.taymans@chello.be>, " "Wim Taymans <wim.taymans@chello.be>, "
"Renato Filho <renato.filho@indt.org.br>"); "Renato Filho <renato.filho@indt.org.br>");
......
...@@ -766,7 +766,7 @@ gst_jack_audio_sink_class_init (GstJackAudioSinkClass * klass) ...@@ -766,7 +766,7 @@ gst_jack_audio_sink_class_init (GstJackAudioSinkClass * klass)
GST_TYPE_JACK_TRANSPORT, DEFAULT_PROP_TRANSPORT, GST_TYPE_JACK_TRANSPORT, DEFAULT_PROP_TRANSPORT,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
gst_element_class_set_details_simple (gstelement_class, "Audio Sink (Jack)", gst_element_class_set_static_metadata (gstelement_class, "Audio Sink (Jack)",
"Sink/Audio", "Output audio to a JACK server", "Sink/Audio", "Output audio to a JACK server",
"Wim Taymans <wim.taymans@gmail.com>"); "Wim Taymans <wim.taymans@gmail.com>");
......
...@@ -790,8 +790,9 @@ gst_jack_audio_src_class_init (GstJackAudioSrcClass * klass) ...@@ -790,8 +790,9 @@ gst_jack_audio_src_class_init (GstJackAudioSrcClass * klass)
gst_element_class_add_pad_template (gstelement_class, gst_element_class_add_pad_template (gstelement_class,
gst_static_pad_template_get (&src_factory)); gst_static_pad_template_get (&src_factory));
gst_element_class_set_details_simple (gstelement_class, "Audio Source (Jack)", gst_element_class_set_static_metadata (gstelement_class,
"Source/Audio", "Captures audio from a JACK server", "Audio Source (Jack)", "Source/Audio",
"Captures audio from a JACK server",
"Tristan Matthews <tristan@sat.qc.ca>"); "Tristan Matthews <tristan@sat.qc.ca>");
gstbasesrc_class->get_caps = GST_DEBUG_FUNCPTR (gst_jack_audio_src_getcaps); gstbasesrc_class->get_caps = GST_DEBUG_FUNCPTR (gst_jack_audio_src_getcaps);
......
...@@ -165,7 +165,7 @@ gst_jpeg_dec_class_init (GstJpegDecClass * klass) ...@@ -165,7 +165,7 @@ gst_jpeg_dec_class_init (GstJpegDecClass * klass)
gst_static_pad_template_get (&gst_jpeg_dec_src_pad_template)); gst_static_pad_template_get (&gst_jpeg_dec_src_pad_template));
gst_element_class_add_pad_template (gstelement_class, gst_element_class_add_pad_template (gstelement_class,
gst_static_pad_template_get (&gst_jpeg_dec_sink_pad_template)); gst_static_pad_template_get (&gst_jpeg_dec_sink_pad_template));
gst_element_class_set_details_simple (gstelement_class, "JPEG image decoder", gst_element_class_set_static_metadata (gstelement_class, "JPEG image decoder",
"Codec/Decoder/Image", "Codec/Decoder/Image",
"Decode images from JPEG format", "Wim Taymans <wim@fluendo.com>"); "Decode images from JPEG format", "Wim Taymans <wim@fluendo.com>");
......
...@@ -147,7 +147,7 @@ gst_jpegenc_class_init (GstJpegEncClass * klass) ...@@ -147,7 +147,7 @@ gst_jpegenc_class_init (GstJpegEncClass * klass)
gst_static_pad_template_get (&gst_jpegenc_sink_pad_template)); gst_static_pad_template_get (&gst_jpegenc_sink_pad_template));
gst_element_class_add_pad_template (gstelement_class, gst_element_class_add_pad_template (gstelement_class,
gst_static_pad_template_get (&gst_jpegenc_src_pad_template)); gst_static_pad_template_get (&gst_jpegenc_src_pad_template));
gst_element_class_set_details_simple (gstelement_class, "JPEG image encoder", gst_element_class_set_static_metadata (gstelement_class, "JPEG image encoder",
"Codec/Encoder/Image", "Codec/Encoder/Image",
"Encode images in JPEG format", "Wim Taymans <wim.taymans@tvd.be>"); "Encode images in JPEG format", "Wim Taymans <wim.taymans@tvd.be>");
......
...@@ -110,7 +110,7 @@ gst_smokedec_base_init (gpointer g_class) ...@@ -110,7 +110,7 @@ gst_smokedec_base_init (gpointer g_class)
gst_static_pad_template_get (&gst_smokedec_src_pad_template)); gst_static_pad_template_get (&gst_smokedec_src_pad_template));
gst_element_class_add_pad_template (element_class, gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_smokedec_sink_pad_template)); gst_static_pad_template_get (&gst_smokedec_sink_pad_template));
gst_element_class_set_details_simple (element_class, "Smoke video decoder", gst_element_class_set_static_metadata (element_class, "Smoke video decoder",
"Codec/Decoder/Video", "Codec/Decoder/Video",
"Decode video from Smoke format", "Wim Taymans <wim@fluendo.com>"); "Decode video from Smoke format", "Wim Taymans <wim@fluendo.com>");
} }
......
...@@ -127,7 +127,7 @@ gst_smokeenc_base_init (gpointer g_class) ...@@ -127,7 +127,7 @@ gst_smokeenc_base_init (gpointer g_class)
gst_static_pad_template_get (&gst_smokeenc_sink_pad_template)); gst_static_pad_template_get (&gst_smokeenc_sink_pad_template));
gst_element_class_add_pad_template (element_class, gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_smokeenc_src_pad_template)); gst_static_pad_template_get (&gst_smokeenc_src_pad_template));
gst_element_class_set_details_simple (element_class, "Smoke video encoder", gst_element_class_set_static_metadata (element_class, "Smoke video encoder",
"Codec/Encoder/Video", "Codec/Encoder/Video",
"Encode images into the Smoke format", "Wim Taymans <wim@fluendo.com>"); "Encode images into the Smoke format", "Wim Taymans <wim@fluendo.com>");
} }
......
...@@ -148,7 +148,7 @@ gst_cacasink_class_init (GstCACASinkClass * klass) ...@@ -148,7 +148,7 @@ gst_cacasink_class_init (GstCACASinkClass * klass)
gstelement_class->change_state = gst_cacasink_change_state; gstelement_class->change_state = gst_cacasink_change_state;
gst_element_class_set_details_simple (gstelement_class, gst_element_class_set_static_metadata (gstelement_class,
"A colored ASCII art video sink", "Sink/Video", "A colored ASCII art video sink", "Sink/Video",
"A colored ASCII art videosink", "Zeeshan Ali <zak147@yahoo.com>"); "A colored ASCII art videosink", "Zeeshan Ali <zak147@yahoo.com>");
gst_element_class_add_pad_template (gstelement_class, gst_element_class_add_pad_template (gstelement_class,
......
...@@ -70,7 +70,7 @@ gst_mng_dec_base_init (gpointer g_class) ...@@ -70,7 +70,7 @@ gst_mng_dec_base_init (gpointer g_class)
gst_static_pad_template_get (&gst_mng_dec_src_pad_template)); gst_static_pad_template_get (&gst_mng_dec_src_pad_template));
gst_element_class_add_pad_template (element_class, gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_mng_dec_sink_pad_template)); gst_static_pad_template_get (&gst_mng_dec_sink_pad_template));
gst_element_class_set_details_simple (element_class, "MNG video decoder", gst_element_class_set_static_metadata (element_class, "MNG video decoder",
"Codec/Decoder/Video", "Codec/Decoder/Video",
"Decode a mng video to raw images", "Wim Taymans <wim@fluendo.com>"); "Decode a mng video to raw images", "Wim Taymans <wim@fluendo.com>");
} }
......
...@@ -84,7 +84,7 @@ gst_mng_enc_base_init (gpointer g_class) ...@@ -84,7 +84,7 @@ gst_mng_enc_base_init (gpointer g_class)
gst_element_class_add_pad_template (element_class, mngenc_sink_template); gst_element_class_add_pad_template (element_class, mngenc_sink_template);
gst_element_class_add_pad_template (element_class, mngenc_src_template); gst_element_class_add_pad_template (element_class, mngenc_src_template);
gst_element_class_set_details_simple (element_class, "MNG video encoder", gst_element_class_set_static_metadata (element_class, "MNG video encoder",
"Codec/Encoder/Video", "Codec/Encoder/Video",
"Encode a video frame to an .mng video", "Wim Taymans <wim@fluendo.com>"); "Encode a video frame to an .mng video", "Wim Taymans <wim@fluendo.com>");
} }
......
...@@ -88,7 +88,7 @@ gst_pngdec_class_init (GstPngDecClass * klass) ...@@ -88,7 +88,7 @@ gst_pngdec_class_init (GstPngDecClass * klass)
gst_static_pad_template_get (&gst_pngdec_src_pad_template)); gst_static_pad_template_get (&gst_pngdec_src_pad_template));
gst_element_class_add_pad_template (gstelement_class, gst_element_class_add_pad_template (gstelement_class,
gst_static_pad_template_get (&gst_pngdec_sink_pad_template)); gst_static_pad_template_get (&gst_pngdec_sink_pad_template));
gst_element_class_set_details_simple (gstelement_class, "PNG image decoder", gst_element_class_set_static_metadata (gstelement_class, "PNG image decoder",
"Codec/Decoder/Image", "Codec/Decoder/Image",
"Decode a png video frame to a raw image", "Decode a png video frame to a raw image",
"Wim Taymans <wim@fluendo.com>"); "Wim Taymans <wim@fluendo.com>");
......
...@@ -126,7 +126,7 @@ gst_pngenc_class_init (GstPngEncClass * klass) ...@@ -126,7 +126,7 @@ gst_pngenc_class_init (GstPngEncClass * klass)
(element_class, gst_static_pad_template_get (&pngenc_sink_template)); (element_class, gst_static_pad_template_get (&pngenc_sink_template));
gst_element_class_add_pad_template gst_element_class_add_pad_template
(element_class, gst_static_pad_template_get (&pngenc_src_template)); (element_class, gst_static_pad_template_get (&pngenc_src_template));
gst_element_class_set_details_simple (element_class, "PNG image encoder", gst_element_class_set_static_metadata (element_class, "PNG image encoder",
"Codec/Encoder/Image", "Codec/Encoder/Image",
"Encode a video frame to a .png image", "Encode a video frame to a .png image",
"Jeremy SIMON <jsimon13@yahoo.fr>"); "Jeremy SIMON <jsimon13@yahoo.fr>");
......
...@@ -132,7 +132,7 @@ gst_mikmod_base_init (gpointer g_class) ...@@ -132,7 +132,7 @@ gst_mikmod_base_init (gpointer g_class)
gst_static_pad_template_get (&mikmod_src_factory)); gst_static_pad_template_get (&mikmod_src_factory));
gst_element_class_add_pad_template (element_class, gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&mikmod_sink_factory)); gst_static_pad_template_get (&mikmod_sink_factory));
gst_element_class_set_details_simple (element_class, "MikMod audio decoder", gst_element_class_set_static_metadata (element_class, "MikMod audio decoder",
"Codec/Decoder/Audio", "Codec/Decoder/Audio",
"Module decoder based on libmikmod", "Jeremy SIMON <jsimon13@yahoo.fr>"); "Module decoder based on libmikmod", "Jeremy SIMON <jsimon13@yahoo.fr>");
} }
......
...@@ -103,7 +103,7 @@ gst_pulsemixer_class_init (GstPulseMixerClass * g_class) ...@@ -103,7 +103,7 @@ gst_pulsemixer_class_init (GstPulseMixerClass * g_class)
"Human-readable name of the sound device", NULL, "Human-readable name of the sound device", NULL,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
gst_element_class_set_details_simple (GST_ELEMENT_CLASS (g_class), gst_element_class_set_static_metadata (GST_ELEMENT_CLASS (g_class),
"PulseAudio Mixer", "PulseAudio Mixer",
"Generic/Audio", "Generic/Audio",
"Control sound input and output levels for PulseAudio", "Control sound input and output levels for PulseAudio",
......
...@@ -1862,7 +1862,7 @@ gst_pulsesink_class_init (GstPulseSinkClass * klass) ...@@ -1862,7 +1862,7 @@ gst_pulsesink_class_init (GstPulseSinkClass * klass)
"list of pulseaudio stream properties", "list of pulseaudio stream properties",
GST_TYPE_STRUCTURE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); GST_TYPE_STRUCTURE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
gst_element_class_set_details_simple (gstelement_class, gst_element_class_set_static_metadata (gstelement_class,
"PulseAudio Audio Sink", "PulseAudio Audio Sink",
"Sink/Audio", "Plays audio to a PulseAudio server", "Lennart Poettering"); "Sink/Audio", "Plays audio to a PulseAudio server", "Lennart Poettering");
gst_element_class_add_pad_template (gstelement_class, gst_element_class_add_pad_template (gstelement_class,
......
...@@ -228,7 +228,7 @@ gst_pulsesrc_class_init (GstPulseSrcClass * klass) ...@@ -228,7 +228,7 @@ gst_pulsesrc_class_init (GstPulseSrcClass * klass)
"record stream", 0, G_MAXUINT, PA_INVALID_INDEX, "record stream", 0, G_MAXUINT, PA_INVALID_INDEX,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
gst_element_class_set_details_simple (gstelement_class, gst_element_class_set_static_metadata (gstelement_class,
"PulseAudio Audio Source", "PulseAudio Audio Source",
"Source/Audio", "Source/Audio",
"Captures audio from a PulseAudio server", "Lennart Poettering"); "Captures audio from a PulseAudio server", "Lennart Poettering");
......
...@@ -173,7 +173,7 @@ gst_dv1394src_base_init (gpointer g_class) ...@@ -173,7 +173,7 @@ gst_dv1394src_base_init (gpointer g_class)
gst_element_class_add_pad_template (element_class, gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&src_factory)); gst_static_pad_template_get (&src_factory));
gst_element_class_set_details_simple (element_class, gst_element_class_set_static_metadata (element_class,
"Firewire (1394) DV video source", "Source/Video", "Firewire (1394) DV video source", "Source/Video",
"Source for DV video data from firewire port", "Source for DV video data from firewire port",
"Erik Walthinsen <omega@temple-baptist.com>, " "Erik Walthinsen <omega@temple-baptist.com>, "
......
...@@ -143,7 +143,7 @@ gst_hdv1394src_base_init (gpointer g_class) ...@@ -143,7 +143,7 @@ gst_hdv1394src_base_init (gpointer g_class)
gst_element_class_add_pad_template (element_class, gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&src_factory)); gst_static_pad_template_get (&src_factory));
gst_element_class_set_details_simple (element_class, gst_element_class_set_static_metadata (element_class,
"Firewire (1394) HDV video source", "Source/Video", "Firewire (1394) HDV video source", "Source/Video",
"Source for MPEG-TS video data from firewire port", "Source for MPEG-TS video data from firewire port",
"Edward Hervey <bilboed@bilboed.com>"); "Edward Hervey <bilboed@bilboed.com>");
......
...@@ -209,7 +209,7 @@ gst_shout2send_class_init (GstShout2sendClass * klass) ...@@ -209,7 +209,7 @@ gst_shout2send_class_init (GstShout2sendClass * klass)
gst_element_class_add_pad_template (gstelement_class, gst_element_class_add_pad_template (gstelement_class,
gst_static_pad_template_get (&sink_template)); gst_static_pad_template_get (&sink_template));
gst_element_class_set_details_simple (gstelement_class, gst_element_class_set_static_metadata (gstelement_class,
"Icecast network sink", "Icecast network sink",
"Sink/Network", "Sends data to an icecast server", "Sink/Network", "Sends data to an icecast server",
"Wim Taymans <wim.taymans@chello.be>, " "Wim Taymans <wim.taymans@chello.be>, "
......
...@@ -172,7 +172,7 @@ gst_soup_http_client_sink_class_init (GstSoupHttpClientSinkClass * klass) ...@@ -172,7 +172,7 @@ gst_soup_http_client_sink_class_init (GstSoupHttpClientSinkClass * klass)
gst_element_class_add_pad_template (gstelement_class, gst_element_class_add_pad_template (gstelement_class,
gst_static_pad_template_get (&gst_soup_http_client_sink_sink_template)); gst_static_pad_template_get (&gst_soup_http_client_sink_sink_template));
gst_element_class_set_details_simple (gstelement_class, "HTTP client sink", gst_element_class_set_static_metadata (gstelement_class, "HTTP client sink",
"Generic", "Sends streams to HTTP server via PUT", "Generic", "Sends streams to HTTP server via PUT",
"David Schleef <ds@entropywave.com>"); "David Schleef <ds@entropywave.com>");
......
...@@ -242,7 +242,7 @@ gst_soup_http_src_class_init (GstSoupHTTPSrcClass * klass) ...@@ -242,7 +242,7 @@ gst_soup_http_src_class_init (GstSoupHTTPSrcClass * klass)
gst_element_class_add_pad_template (gstelement_class, gst_element_class_add_pad_template (gstelement_class,
gst_static_pad_template_get (&srctemplate)); gst_static_pad_template_get (&srctemplate));
gst_element_class_set_details_simple (gstelement_class, "HTTP client source", gst_element_class_set_static_metadata (gstelement_class, "HTTP client source",
"Source/Network", "Source/Network",
"Receive data as a client over the network via HTTP using SOUP", "Receive data as a client over the network via HTTP using SOUP",
"Wouter Cloetens <wouter@mind.be>"); "Wouter Cloetens <wouter@mind.be>");
......
...@@ -120,8 +120,8 @@ gst_speex_dec_class_init (GstSpeexDecClass * klass) ...@@ -120,8 +120,8 @@ gst_speex_dec_class_init (GstSpeexDecClass * klass)
gst_static_pad_template_get (&speex_dec_src_factory)); gst_static_pad_template_get (&speex_dec_src_factory));
gst_element_class_add_pad_template (gstelement_class, gst_element_class_add_pad_template (gstelement_class,
gst_static_pad_template_get (&speex_dec_sink_factory)); gst_static_pad_template_get (&speex_dec_sink_factory));
gst_element_class_set_details_simple (gstelement_class, "Speex audio decoder", gst_element_class_set_static_metadata (gstelement_class,
"Codec/Decoder/Audio", "Speex audio decoder", "Codec/Decoder/Audio",
"decode speex streams to audio", "Wim Taymans <wim@fluendo.com>"); "decode speex streams to audio", "Wim Taymans <wim@fluendo.com>");
GST_DEBUG_CATEGORY_INIT (speexdec_debug, "speexdec", 0, GST_DEBUG_CATEGORY_INIT (speexdec_debug, "speexdec", 0,
......
...@@ -215,8 +215,8 @@ gst_speex_enc_class_init (GstSpeexEncClass * klass) ...@@ -215,8 +215,8 @@ gst_speex_enc_class_init (GstSpeexEncClass * klass)
gst_static_pad_template_get (&src_factory)); gst_static_pad_template_get (&src_factory));
gst_element_class_add_pad_template (gstelement_class, gst_element_class_add_pad_template (gstelement_class,
gst_static_pad_template_get (&sink_factory)); gst_static_pad_template_get (&sink_factory));
gst_element_class_set_details_simple (gstelement_class, "Speex audio encoder", gst_element_class_set_static_metadata (gstelement_class,
"Codec/Encoder/Audio", "Speex audio encoder", "Codec/Encoder/Audio",
"Encodes audio in Speex format", "Wim Taymans <wim@fluendo.com>"); "Encodes audio in Speex format", "Wim Taymans <wim@fluendo.com>");
GST_DEBUG_CATEGORY_INIT (speexenc_debug, "speexenc", 0, "Speex encoder"); GST_DEBUG_CATEGORY_INIT (speexenc_debug, "speexenc", 0, "Speex encoder");
......
...@@ -91,7 +91,7 @@ gst_apev2_mux_class_init (GstApev2MuxClass * klass) ...@@ -91,7 +91,7 @@ gst_apev2_mux_class_init (GstApev2MuxClass * klass)
gst_element_class_add_pad_template (element_class, gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&src_template)); gst_static_pad_template_get (&src_template));
gst_element_class_set_details_simple (element_class, gst_element_class_set_static_metadata (element_class,
"TagLib-based APEv2 Muxer", "Formatter/Metadata", "TagLib-based APEv2 Muxer", "Formatter/Metadata",
"Adds an APEv2 header to the beginning of files using taglib", "Adds an APEv2 header to the beginning of files using taglib",
"Sebastian Dröge <slomo@circular-chaos.org>"); "Sebastian Dröge <slomo@circular-chaos.org>");
......
...@@ -99,7 +99,7 @@ gst_id3v2_mux_class_init (GstId3v2MuxClass * klass) ...@@ -99,7 +99,7 @@ gst_id3v2_mux_class_init (GstId3v2MuxClass * klass)
gst_element_class_add_pad_template (element_class, gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&src_template)); gst_static_pad_template_get (&src_template));
gst_element_class_set_details_simple (element_class, gst_element_class_set_static_metadata (element_class,
"TagLib-based ID3v2 Muxer", "Formatter/Metadata",