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

jpeg, png, vpx: use gst_element_class_set_static_metadata()

Avoids some string copies.
parent e9040e90
......@@ -164,7 +164,7 @@ gst_jpeg_dec_class_init (GstJpegDecClass * klass)
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_set_metadata (element_class, "JPEG image decoder",
gst_element_class_set_static_metadata (element_class, "JPEG image decoder",
"Codec/Decoder/Image",
"Decode images from JPEG format", "Wim Taymans <wim@fluendo.com>");
......
......@@ -152,7 +152,7 @@ gst_jpegenc_class_init (GstJpegEncClass * klass)
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_set_metadata (element_class, "JPEG image encoder",
gst_element_class_set_static_metadata (element_class, "JPEG image encoder",
"Codec/Encoder/Image",
"Encode images in JPEG format", "Wim Taymans <wim.taymans@tvd.be>");
......
......@@ -79,7 +79,7 @@ gst_pngdec_class_init (GstPngDecClass * klass)
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_set_metadata (element_class, "PNG image decoder",
gst_element_class_set_static_metadata (element_class, "PNG image decoder",
"Codec/Decoder/Image",
"Decode a png video frame to a raw image",
"Wim Taymans <wim@fluendo.com>");
......
......@@ -131,7 +131,7 @@ gst_pngenc_class_init (GstPngEncClass * klass)
(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_set_metadata (element_class, "PNG image encoder",
gst_element_class_set_static_metadata (element_class, "PNG image encoder",
"Codec/Encoder/Image",
"Encode a video frame to a .png image",
"Jeremy SIMON <jsimon13@yahoo.fr>");
......
......@@ -176,7 +176,7 @@ gst_vp8_dec_class_init (GstVP8DecClass * klass)
gst_element_class_add_pad_template (element_class,
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",
"Codec/Decoder/Video",
"Decode VP8 video streams", "David Schleef <ds@entropywave.com>, "
......
......@@ -416,7 +416,7 @@ gst_vp8_enc_class_init (GstVP8EncClass * klass)
gst_element_class_add_pad_template (element_class,
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",
"Codec/Encoder/Video",
"Encode VP8 video streams", "David Schleef <ds@entropywave.com>, "
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment