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

Use gst_element_class_set_static_metadata()

where possible. Avoids some string copies. Also re-indent
some stuff. Also some indent fixes here and there.
parent a7258842
......@@ -261,7 +261,7 @@ gst_apexsink_base_init (gpointer g_class)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_set_metadata (element_class,
gst_element_class_set_static_metadata (element_class,
"Apple AirPort Express Audio Sink", "Sink/Audio/Wireless",
"Output stream to an AirPort Express",
"Jérémie Bernard [GRemi] <gremimail@gmail.com>");
......
......@@ -155,7 +155,7 @@ gst_ass_render_class_init (GstAssRenderClass * klass)
gst_element_class_add_pad_template (gstelement_class,
gst_static_pad_template_get (&text_sink_factory));
gst_element_class_set_metadata (gstelement_class, "ASS/SSA Render",
gst_element_class_set_static_metadata (gstelement_class, "ASS/SSA Render",
"Mixer/Video/Overlay/Subtitle",
"Renders ASS/SSA subtitles with libass",
"Benjamin Schmitz <vortex@wolpzone.de>, "
......
......@@ -119,7 +119,7 @@ gst_afparse_base_init (gpointer g_class)
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&afparse_sink_factory));
gst_element_class_set_metadata (element_class, "Audiofile demuxer",
gst_element_class_set_static_metadata (element_class, "Audiofile demuxer",
"Codec/Demuxer/Audio",
"Audiofile parser for audio/raw",
"Steve Baker <stevebaker_org@yahoo.co.uk>");
......
......@@ -140,7 +140,7 @@ gst_afsink_base_init (gpointer g_class)
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&afsink_sink_factory));
gst_element_class_set_metadata (element_class, "Audiofile sink",
gst_element_class_set_static_metadata (element_class, "Audiofile sink",
"Sink/Audio",
"Write audio streams to disk using libaudiofile",
"Thomas Vander Stichele <thomas@apestaart.org>");
......
......@@ -137,7 +137,7 @@ gst_afsrc_base_init (gpointer g_class)
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&afsrc_src_factory));
gst_element_class_set_metadata (element_class, "Audiofile source",
gst_element_class_set_static_metadata (element_class, "Audiofile source",
"Source/Audio",
"Read audio files from disk using libaudiofile",
"Thomas <thomas@apestaart.org>");
......
......@@ -300,7 +300,7 @@ gst_bz2dec_class_init (GstBz2decClass * klass)
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_set_metadata (gstelement_class, "BZ2 decoder",
gst_element_class_set_static_metadata (gstelement_class, "BZ2 decoder",
"Codec/Decoder", "Decodes compressed streams",
"Lutz Mueller <lutz@users.sourceforge.net>");
......
......@@ -324,7 +324,7 @@ gst_bz2enc_class_init (GstBz2encClass * klass)
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_set_metadata (gstelement_class, "BZ2 encoder",
gst_element_class_set_static_metadata (gstelement_class, "BZ2 encoder",
"Codec/Encoder", "Compresses streams",
"Lutz Mueller <lutz@users.sourceforge.net>");
......
......@@ -135,7 +135,7 @@ gst_cdaudio_base_init (gpointer g_class)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_set_metadata (element_class, "CD player",
gst_element_class_set_static_metadata (element_class, "CD player",
"Generic/Bin",
"Play CD audio through the CD Drive", "Wim Taymans <wim@fluendo.com>");
......
......@@ -97,7 +97,7 @@ gst_celt_dec_class_init (GstCeltDecClass * klass)
gst_element_class_add_pad_template (gstelement_class,
gst_static_pad_template_get (&celt_dec_sink_factory));
gst_element_class_set_metadata (gstelement_class, "Celt audio decoder",
gst_element_class_set_static_metadata (gstelement_class, "Celt audio decoder",
"Codec/Decoder/Audio",
"decode celt streams to audio",
"Sebastian Dröge <sebastian.droege@collabora.co.uk>");
......
......@@ -189,7 +189,7 @@ gst_celt_enc_class_init (GstCeltEncClass * klass)
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_set_metadata (gstelement_class, "Celt audio encoder",
gst_element_class_set_static_metadata (gstelement_class, "Celt audio encoder",
"Codec/Encoder/Audio",
"Encodes audio in Celt format",
"Sebastian Dröge <sebastian.droege@collabora.co.uk>");
......
......@@ -106,7 +106,7 @@ gst_chromaprint_class_init (GstChromaprintClass * klass)
GST_DEBUG_FUNCPTR (gst_chromaprint_sink_event);
gstbasetrans_class->passthrough_on_same_caps = TRUE;
gst_element_class_set_metadata (GST_ELEMENT_CLASS (klass),
gst_element_class_set_static_metadata (GST_ELEMENT_CLASS (klass),
"Chromaprint fingerprinting element",
"Filter/Analyzer/Audio",
"Find an audio fingerprint using the Chromaprint library",
......
......@@ -137,7 +137,7 @@ gst_cogdownsample_base_init (gpointer g_class)
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_cogdownsample_sink_template));
gst_element_class_set_metadata (element_class,
gst_element_class_set_static_metadata (element_class,
"Scale down video by factor of 2", "Filter/Effect/Video",
"Scales down video by a factor of 2", "David Schleef <ds@schleef.org>");
}
......
......@@ -143,7 +143,7 @@ gst_mse_base_init (gpointer klass)
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_framestore_sink_test_template));
gst_element_class_set_metadata (element_class, "Calculate MSE",
gst_element_class_set_static_metadata (element_class, "Calculate MSE",
"Filter/Effect",
"Calculates mean squared error between two video streams",
"David Schleef <ds@schleef.org>");
......
......@@ -203,7 +203,7 @@ gst_cog_scale_base_init (gpointer g_class)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_set_metadata (element_class, "Video scaler",
gst_element_class_set_static_metadata (element_class, "Video scaler",
"Filter/Effect/Video",
"Resizes video", "Wim Taymans <wim.taymans@chello.be>");
......
......@@ -158,7 +158,7 @@ gst_curl_base_sink_class_init (GstCurlBaseSinkClass * klass)
"curl base sink element");
GST_DEBUG_OBJECT (klass, "class_init");
gst_element_class_set_metadata (element_class,
gst_element_class_set_static_metadata (element_class,
"Curl base sink",
"Sink/Network",
"Upload data over the network to a server using libcurl",
......
......@@ -107,7 +107,7 @@ gst_curl_file_sink_class_init (GstCurlFileSinkClass * klass)
"curl file sink element");
GST_DEBUG_OBJECT (klass, "class_init");
gst_element_class_set_metadata (element_class,
gst_element_class_set_static_metadata (element_class,
"Curl file sink",
"Sink/Network",
"Upload data over FILE protocol using libcurl",
......
......@@ -108,7 +108,7 @@ gst_curl_ftp_sink_class_init (GstCurlFtpSinkClass * klass)
"curl ftp sink element");
GST_DEBUG_OBJECT (klass, "class_init");
gst_element_class_set_metadata (element_class,
gst_element_class_set_static_metadata (element_class,
"Curl ftp sink",
"Sink/Network",
"Upload data over FTP protocol using libcurl",
......
......@@ -126,7 +126,7 @@ gst_curl_http_sink_class_init (GstCurlHttpSinkClass * klass)
"curl http sink element");
GST_DEBUG_OBJECT (klass, "class_init");
gst_element_class_set_metadata (element_class,
gst_element_class_set_static_metadata (element_class,
"Curl http sink",
"Sink/Network",
"Upload data over HTTP/HTTPS protocol using libcurl",
......
......@@ -229,7 +229,7 @@ gst_curl_smtp_sink_class_init (GstCurlSmtpSinkClass * klass)
"curl smtp sink element");
GST_DEBUG_OBJECT (klass, "class_init");
gst_element_class_set_metadata (element_class,
gst_element_class_set_static_metadata (element_class,
"Curl smtp sink",
"Sink/Network",
"Upload data over SMTP protocol using libcurl",
......
......@@ -98,7 +98,7 @@ gst_curl_tls_sink_class_init (GstCurlTlsSinkClass * klass)
"curl tls sink element");
GST_DEBUG_OBJECT (klass, "class_init");
gst_element_class_set_metadata (element_class,
gst_element_class_set_static_metadata (element_class,
"Curl tls sink",
"Sink/Network",
"Upload data over TLS protocol using libcurl",
......
......@@ -105,8 +105,8 @@ gst_dc1394_base_init (gpointer g_class)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_set_metadata (element_class, "1394 IIDC Video Source",
"Source/Video",
gst_element_class_set_static_metadata (element_class,
"1394 IIDC Video Source", "Source/Video",
"libdc1394 based source, supports 1394 IIDC cameras",
"Antoine Tremblay <hexa00@gmail.com>");
......
......@@ -107,7 +107,7 @@ gst_diracdec_base_init (gpointer g_class)
&gst_diracdec_src_pad_template);
gst_element_class_add_static_pad_template (element_class,
&gst_diracdec_sink_pad_template);
gst_element_class_set_metadata (element_class, "Dirac stream decoder",
gst_element_class_set_static_metadata (element_class, "Dirac stream decoder",
"Codec/Decoder/Video", "Decode DIRAC streams",
"David Schleef <ds@schleef.org>, "
"Ronald Bultje <rbultje@ronald.bitfreak.net>");
......
......@@ -205,7 +205,7 @@ gst_dirac_enc_base_init (gpointer g_class)
gst_element_class_add_static_pad_template (element_class,
&gst_dirac_enc_sink_template);
gst_element_class_set_metadata (element_class, "Dirac Encoder",
gst_element_class_set_static_metadata (element_class, "Dirac Encoder",
"Codec/Encoder/Video",
"Encode raw YUV video into Dirac stream",
"David Schleef <ds@schleef.org>");
......
......@@ -2262,7 +2262,7 @@ gst_dfbvideosink_base_init (gpointer g_class)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_set_metadata (element_class, "DirectFB video sink",
gst_element_class_set_static_metadata (element_class, "DirectFB video sink",
"Sink/Video",
"A DirectFB based videosink", "Julien Moutte <julien@moutte.net>");
......
......@@ -160,7 +160,7 @@ gst_dtsdec_class_init (GstDtsDecClass * klass)
gst_static_pad_template_get (&sink_factory));
gst_element_class_add_pad_template (gstelement_class,
gst_static_pad_template_get (&src_factory));
gst_element_class_set_metadata (gstelement_class, "DTS audio decoder",
gst_element_class_set_static_metadata (gstelement_class, "DTS audio decoder",
"Codec/Decoder/Audio",
"Decodes DTS audio streams",
"Jan Schmidt <thaytan@noraisin.net>, "
......
......@@ -202,7 +202,7 @@ gst_faac_class_init (GstFaacClass * klass)
gst_element_class_add_pad_template (gstelement_class,
gst_static_pad_template_get (&sink_template));
gst_element_class_set_metadata (gstelement_class, "AAC audio encoder",
gst_element_class_set_static_metadata (gstelement_class, "AAC audio encoder",
"Codec/Encoder/Audio",
"Free MPEG-2/4 AAC encoder",
"Ronald Bultje <rbultje@ronald.bitfreak.net>");
......
......@@ -157,7 +157,7 @@ gst_faad_class_init (GstFaadClass * klass)
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&sink_template));
gst_element_class_set_metadata (element_class, "AAC audio decoder",
gst_element_class_set_static_metadata (element_class, "AAC audio decoder",
"Codec/Decoder/Audio",
"Free MPEG-2/4 AAC decoder",
"Ronald Bultje <rbultje@ronald.bitfreak.net>");
......
......@@ -129,7 +129,7 @@ gst_flite_test_src_class_init (GstFliteTestSrcClass * klass)
gst_element_class_add_pad_template (gstelement_class,
gst_static_pad_template_get (&gst_flite_test_src_src_template));
gst_element_class_set_metadata (gstelement_class,
gst_element_class_set_static_metadata (gstelement_class,
"Flite speech test source", "Source/Audio",
"Creates audio test signals identifying channels",
"David Schleef <ds@schleef.org>");
......
......@@ -86,7 +86,7 @@ gst_gme_dec_class_init (GstGmeDecClass * klass)
gobject_class->dispose = gst_gme_dec_dispose;
gst_element_class_set_metadata (element_class,
gst_element_class_set_static_metadata (element_class,
"Gaming console music file decoder", "Codec/Audio/Decoder",
"Uses libgme to emulate a gaming console sound processors",
"Chris Lee <clee@kde.org>, Brian Koropoff <bkoropoff@gmail.com>, "
......
......@@ -329,7 +329,7 @@ gst_gsettings_audio_sink_base_init (gpointer klass)
{
GstElementClass *eklass = GST_ELEMENT_CLASS (klass);
gst_element_class_set_metadata (eklass, "GSettings audio sink",
gst_element_class_set_static_metadata (eklass, "GSettings audio sink",
"Sink/Audio",
"Audio sink embedding the GSettings preferences for audio output",
"Sebastian Dröge <sebastian.droege@collabora.co.uk>");
......
......@@ -228,7 +228,7 @@ gst_gsettings_audio_src_base_init (gpointer klass)
{
GstElementClass *eklass = GST_ELEMENT_CLASS (klass);
gst_element_class_set_metadata (eklass, "GSettings audio src",
gst_element_class_set_static_metadata (eklass, "GSettings audio src",
"Src/Audio",
"Audio src embedding the GSettings preferences for audio input",
"Sebastian Dröge <sebastian.droege@collabora.co.uk>");
......
......@@ -228,7 +228,7 @@ gst_gsettings_video_sink_base_init (gpointer klass)
{
GstElementClass *eklass = GST_ELEMENT_CLASS (klass);
gst_element_class_set_metadata (eklass, "GSettings video sink",
gst_element_class_set_static_metadata (eklass, "GSettings video sink",
"Sink/Video",
"Video sink embedding the GSettings preferences for video input",
"Sebastian Dröge <sebastian.droege@collabora.co.uk>");
......
......@@ -228,7 +228,7 @@ gst_gsettings_video_src_base_init (gpointer klass)
{
GstElementClass *eklass = GST_ELEMENT_CLASS (klass);
gst_element_class_set_metadata (eklass, "GSettings video src",
gst_element_class_set_static_metadata (eklass, "GSettings video src",
"Src/Video",
"Video src embedding the GSettings preferences for video input",
"Sebastian Dröge <sebastian.droege@collabora.co.uk>");
......
......@@ -88,7 +88,7 @@ gst_gsmdec_class_init (GstGSMDecClass * klass)
gst_static_pad_template_get (&gsmdec_sink_template));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gsmdec_src_template));
gst_element_class_set_metadata (element_class, "GSM audio decoder",
gst_element_class_set_static_metadata (element_class, "GSM audio decoder",
"Codec/Decoder/Audio",
"Decodes GSM encoded audio", "Philippe Khalaf <burger@speedy.org>");
......
......@@ -82,7 +82,7 @@ gst_gsmenc_class_init (GstGSMEncClass * klass)
gst_static_pad_template_get (&gsmenc_sink_template));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gsmenc_src_template));
gst_element_class_set_metadata (element_class, "GSM audio encoder",
gst_element_class_set_static_metadata (element_class, "GSM audio encoder",
"Codec/Encoder/Audio",
"Encodes GSM audio", "Philippe Khalaf <burger@speedy.org>");
......
......@@ -96,7 +96,7 @@ gst_jasper_dec_base_init (gpointer g_class)
gst_static_pad_template_get (&gst_jasper_dec_src_template));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_jasper_dec_sink_template));
gst_element_class_set_metadata (element_class,
gst_element_class_set_static_metadata (element_class,
"Jasper JPEG2000 image decoder", "Codec/Decoder/Image",
"Decodes JPEG2000 encoded images using jasper",
"Mark Nauwelaerts <mnauw@users.sf.net>");
......
......@@ -100,7 +100,7 @@ gst_jasper_enc_base_init (gpointer g_class)
gst_static_pad_template_get (&gst_jasper_enc_src_template));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_jasper_enc_sink_template));
gst_element_class_set_metadata (element_class,
gst_element_class_set_static_metadata (element_class,
"Jasper JPEG2000 image encoder", "Codec/Encoder/Image",
"Encodes video to JPEG2000 using jasper",
"Mark Nauwelaerts <mnauw@users.sf.net>");
......
......@@ -161,7 +161,7 @@ gst_kate_dec_class_init (GstKateDecClass * klass)
gst_element_class_add_pad_template (gstelement_class,
gst_static_pad_template_get (&sink_factory));
gst_element_class_set_metadata (gstelement_class,
gst_element_class_set_static_metadata (gstelement_class,
"Kate stream text decoder", "Codec/Decoder/Subtitle",
"Decodes Kate text streams",
"Vincent Penquerc'h <ogg.k.ogg.k@googlemail.com>");
......
......@@ -216,8 +216,8 @@ gst_kate_enc_class_init (GstKateEncClass * klass)
gst_element_class_add_pad_template (gstelement_class,
gst_static_pad_template_get (&sink_factory));
gst_element_class_set_metadata (gstelement_class, "Kate stream encoder",
"Codec/Encoder/Subtitle",
gst_element_class_set_static_metadata (gstelement_class,
"Kate stream encoder", "Codec/Encoder/Subtitle",
"Encodes Kate streams from text or subpictures",
"Vincent Penquerc'h <ogg.k.ogg.k@googlemail.com>");
}
......
......@@ -111,7 +111,7 @@ gst_kate_parse_class_init (GstKateParseClass * klass)
gst_element_class_add_pad_template (gstelement_class,
gst_static_pad_template_get (&gst_kate_parse_sink_factory));
gst_element_class_set_metadata (gstelement_class, "Kate stream parser",
gst_element_class_set_static_metadata (gstelement_class, "Kate stream parser",
"Codec/Parser/Subtitle",
"parse raw kate streams",
"Vincent Penquerc'h <ogg.k.ogg.k at googlemail dot com>");
......
......@@ -136,7 +136,7 @@ gst_kate_tag_class_init (GstKateTagClass * klass)
"Set the height of the canvas this stream was authored for (0 is unspecified)",
0, G_MAXINT, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
gst_element_class_set_metadata (gstelement_class, "Kate stream tagger",
gst_element_class_set_static_metadata (gstelement_class, "Kate stream tagger",
"Formatter/Metadata",
"Retags kate streams", "Vincent Penquerc'h <ogg.k.ogg.k@googlemail.com>");
......
......@@ -225,7 +225,7 @@ gst_kate_tiger_base_init (gpointer gclass)
gst_static_pad_template_get (&kate_sink_factory));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&video_sink_factory));
gst_element_class_set_metadata (element_class, "Kate stream renderer",
gst_element_class_set_static_metadata (element_class, "Kate stream renderer",
"Mixer/Video/Overlay/Subtitle",
"Decodes and renders Kate streams on top of a video",
"Vincent Penquerc'h <ogg.k.ogg.k@googlemail.com>");
......
......@@ -177,7 +177,7 @@ gst_fameenc_base_init (GstFameEncClass * klass)
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&src_template));
gst_element_class_set_metadata (element_class,
gst_element_class_set_static_metadata (element_class,
"MPEG-1 and MPEG-4 video encoder", "Codec/Encoder/Video",
"Uses fameenc to encode MPEG video streams",
"Thomas Vander Stichele <thomas@apestaart.org>");
......
......@@ -103,7 +103,7 @@ gst_mms_class_init (GstMMSClass * klass)
gst_element_class_add_pad_template (gstelement_class,
gst_static_pad_template_get (&src_factory));
gst_element_class_set_metadata (gstelement_class,
gst_element_class_set_static_metadata (gstelement_class,
"MMS streaming source", "Source/Network",
"Receive data streamed via MSFT Multi Media Server protocol",
"Maciej Katafiasz <mathrick@users.sourceforge.net>");
......
......@@ -85,7 +85,7 @@ gst_mim_dec_class_init (GstMimDecClass * klass)
gst_element_class_add_pad_template (gstelement_class,
gst_static_pad_template_get (&sink_factory));
gst_element_class_set_metadata (gstelement_class,
gst_element_class_set_static_metadata (gstelement_class,
"Mimic Decoder",
"Codec/Decoder/Video",
"MSN Messenger compatible Mimic video decoder element",
......
......@@ -126,7 +126,7 @@ gst_mim_enc_class_init (GstMimEncClass * klass)
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_set_metadata (gstelement_class,
gst_element_class_set_static_metadata (gstelement_class,
"Mimic Encoder",
"Codec/Encoder/Video",
"MSN Messenger compatible Mimic video encoder element",
......
......@@ -214,7 +214,7 @@ gst_modplug_class_init (GstModPlugClass * klass)
gst_element_class_add_pad_template (gstelement_class,
gst_static_pad_template_get (&modplug_src_template_factory));
gst_element_class_set_metadata (gstelement_class, "ModPlug",
gst_element_class_set_static_metadata (gstelement_class, "ModPlug",
"Codec/Decoder/Audio", "Module decoder based on modplug engine",
"Jeremy SIMON <jsimon13@yahoo.fr>");
......
......@@ -132,7 +132,7 @@ gst_mpeg2enc_class_init (GstMpeg2encClass * klass)
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&sink_template));
gst_element_class_set_metadata (element_class,
gst_element_class_set_static_metadata (element_class,
"mpeg2enc video encoder", "Codec/Encoder/Video",
"High-quality MPEG-1/2 video encoder",
"Andrew Stevens <andrew.stevens@nexgo.de>\n"
......
......@@ -142,7 +142,7 @@ gst_mplex_class_init (GstMplexClass * klass)
GST_DEBUG_FUNCPTR (gst_mplex_request_new_pad);
element_class->release_pad = GST_DEBUG_FUNCPTR (gst_mplex_release_pad);
gst_element_class_set_metadata (element_class,
gst_element_class_set_static_metadata (element_class,
"mplex video multiplexer", "Codec/Muxer",
"High-quality MPEG/DVD/SVCD/VCD video/audio multiplexer",
"Andrew Stevens <andrew.stevens@nexgo.de>\n"
......
......@@ -88,7 +88,7 @@ gst_musepackdec_base_init (gpointer klass)
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&sink_template));
gst_element_class_set_metadata (element_class, "Musepack decoder",
gst_element_class_set_static_metadata (element_class, "Musepack decoder",
"Codec/Decoder/Audio",
"Musepack decoder", "Ronald Bultje <rbultje@ronald.bitfreak.net>");
}
......
......@@ -117,7 +117,7 @@ gst_trm_base_init (gpointer klass)
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&sink_template));
gst_element_class_set_metadata (element_class,
gst_element_class_set_static_metadata (element_class,
"MusicBrainz TRM generator", "Filter/Analyzer/Audio",
"Compute MusicBrainz TRM Id using libmusicbrainz",
"Jeremy Simon <jsimon13@yahoo.fr>");
......
......@@ -159,7 +159,7 @@ GST_BOILERPLATE_FULL (GstMythtvSrc, gst_mythtv_src, GstPushSrc,
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&srctemplate));
gst_element_class_set_metadata (element_class, "MythTV client source",
gst_element_class_set_static_metadata (element_class, "MythTV client source",
"Source/Network",
"Control and receive data as a client over the network "
"via raw socket connections using the MythTV protocol",
......
......@@ -96,7 +96,7 @@ gst_nas_sink_base_init (gpointer g_class)
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&sink_factory));
gst_element_class_set_metadata (element_class, "NAS audio sink",
gst_element_class_set_static_metadata (element_class, "NAS audio sink",
"Sink/Audio",
"Plays audio to a Network Audio Server",
"Laurent Vivier <Laurent.Vivier@bull.net>, "
......
......@@ -130,7 +130,7 @@ gst_neonhttp_src_base_init (gpointer g_class)
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&srctemplate));
gst_element_class_set_metadata (element_class, "HTTP client source",
gst_element_class_set_static_metadata (element_class, "HTTP client source",
"Source/Network",
"Receive data as a client over the network via HTTP using NEON",
"Edgard Lima <edgard.lima@indt.org.br>, "
......
......@@ -65,7 +65,7 @@ gst_ofa_base_init (gpointer g_class)
GstAudioFilterClass *audio_filter_class = (GstAudioFilterClass *) g_class;
GstCaps *caps;
gst_element_class_set_metadata (gstelement_class, "OFA",
gst_element_class_set_static_metadata (gstelement_class, "OFA",
"MusicIP Fingerprinting element",
"Find a music fingerprint using MusicIP's libofa",
"Milosz Derezynski <internalerror@gmail.com>, Eric Buehl <eric.buehl@gmail.com>");
......
......@@ -168,7 +168,7 @@ gst_openal_sink_base_init (gpointer gclass)
GstElementClass *element_class = GST_ELEMENT_CLASS (gclass);
GstPadTemplate *pad_template;
gst_element_class_set_metadata (element_class, "Audio sink (OpenAL)",
gst_element_class_set_static_metadata (element_class, "Audio sink (OpenAL)",
"Sink/Audio",
"Output to a sound device via OpenAL",
"Chris Robinson <chris.kcat@gmail.com>");
......
......@@ -137,7 +137,7 @@ gst_openal_src_base_init (gpointer gclass)
GstElementClass *element_class = GST_ELEMENT_CLASS (gclass);
gst_element_class_set_metadata (element_class, "OpenAL src",
gst_element_class_set_static_metadata (element_class, "OpenAL src",
"Source/Audio",
"OpenAL source capture audio from device",
"Victor Lin <bornstub@gmail.com>");
......
......@@ -70,7 +70,7 @@ gst_cv_dilate_class_init (GstCvDilateClass * klass)
gstopencvbasefilter_class->cv_trans_ip_func = gst_cv_dilate_transform_ip;
gstopencvbasefilter_class->cv_trans_func = gst_cv_dilate_transform;
gst_element_class_set_metadata (element_class,
gst_element_class_set_static_metadata (element_class,
"cvdilate",
"Transform/Effect/Video",
"Applies cvDilate OpenCV function to the image",
......
......@@ -85,7 +85,7 @@ gst_cv_equalize_hist_class_init (GstCvEqualizeHistClass * klass)
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&sink_factory));
gst_element_class_set_metadata (element_class,
gst_element_class_set_static_metadata (element_class,
"cvequalizehist",
"Transform/Effect/Video",
"Applies cvEqualizeHist OpenCV function to the image",
......
......@@ -70,7 +70,7 @@ gst_cv_erode_class_init (GstCvErodeClass * klass)
gstopencvbasefilter_class->cv_trans_ip_func = gst_cv_erode_transform_ip;
gstopencvbasefilter_class->cv_trans_func = gst_cv_erode_transform;
gst_element_class_set_metadata (element_class,
gst_element_class_set_static_metadata (element_class,
"cverode",
"Transform/Effect/Video",
"Applies cvErode OpenCV function to the image",
......
......@@ -148,7 +148,7 @@ gst_cv_laplace_class_init (GstCvLaplaceClass * klass)
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&sink_factory));
gst_element_class_set_metadata (element_class,
gst_element_class_set_static_metadata (element_class,
"cvlaplace",
"Transform/Effect/Video",
"Applies cvLaplace OpenCV function to the image",
......
......@@ -175,7 +175,7 @@ gst_cv_smooth_class_init (GstCvSmoothClass * klass)
0, G_MAXDOUBLE, DEFAULT_PARAM4,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
gst_element_class_set_metadata (element_class,
gst_element_class_set_static_metadata (element_class,
"cvsmooth",