mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 16:26:39 +00:00
jpeg, png, vpx: use gst_element_class_set_static_metadata()
Avoids some string copies.
This commit is contained in:
parent
e9040e90a5
commit
9dcdc413a7
6 changed files with 6 additions and 6 deletions
|
@ -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>, "
|
||||
|
|
Loading…
Reference in a new issue