jpeg, png, vpx: use gst_element_class_set_static_metadata()

Avoids some string copies.
This commit is contained in:
Tim-Philipp Müller 2012-10-17 17:03:39 +01:00
parent e9040e90a5
commit 9dcdc413a7
6 changed files with 6 additions and 6 deletions

View file

@ -164,7 +164,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 (element_class, gst_element_class_add_pad_template (element_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_metadata (element_class, "JPEG image decoder", gst_element_class_set_static_metadata (element_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>");

View file

@ -152,7 +152,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 (element_class, gst_element_class_add_pad_template (element_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_metadata (element_class, "JPEG image encoder", gst_element_class_set_static_metadata (element_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>");

View file

@ -79,7 +79,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 (element_class, gst_element_class_add_pad_template (element_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_metadata (element_class, "PNG image decoder", gst_element_class_set_static_metadata (element_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>");

View file

@ -131,7 +131,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_metadata (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>");

View file

@ -176,7 +176,7 @@ gst_vp8_dec_class_init (GstVP8DecClass * klass)
gst_element_class_add_pad_template (element_class, gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_vp8_dec_sink_template)); gst_static_pad_template_get (&gst_vp8_dec_sink_template));
gst_element_class_set_metadata (element_class, gst_element_class_set_static_metadata (element_class,
"On2 VP8 Decoder", "On2 VP8 Decoder",
"Codec/Decoder/Video", "Codec/Decoder/Video",
"Decode VP8 video streams", "David Schleef <ds@entropywave.com>, " "Decode VP8 video streams", "David Schleef <ds@entropywave.com>, "

View file

@ -416,7 +416,7 @@ gst_vp8_enc_class_init (GstVP8EncClass * klass)
gst_element_class_add_pad_template (element_class, gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_vp8_enc_sink_template)); gst_static_pad_template_get (&gst_vp8_enc_sink_template));
gst_element_class_set_metadata (element_class, gst_element_class_set_static_metadata (element_class,
"On2 VP8 Encoder", "On2 VP8 Encoder",
"Codec/Encoder/Video", "Codec/Encoder/Video",
"Encode VP8 video streams", "David Schleef <ds@entropywave.com>, " "Encode VP8 video streams", "David Schleef <ds@entropywave.com>, "