From 9dcdc413a705e6af58cfb2e8188c520db2e0ecbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Wed, 17 Oct 2012 17:03:39 +0100 Subject: [PATCH] jpeg, png, vpx: use gst_element_class_set_static_metadata() Avoids some string copies. --- ext/jpeg/gstjpegdec.c | 2 +- ext/jpeg/gstjpegenc.c | 2 +- ext/libpng/gstpngdec.c | 2 +- ext/libpng/gstpngenc.c | 2 +- ext/vpx/gstvp8dec.c | 2 +- ext/vpx/gstvp8enc.c | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ext/jpeg/gstjpegdec.c b/ext/jpeg/gstjpegdec.c index 29e26b31c0..1579c5eba1 100644 --- a/ext/jpeg/gstjpegdec.c +++ b/ext/jpeg/gstjpegdec.c @@ -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 "); diff --git a/ext/jpeg/gstjpegenc.c b/ext/jpeg/gstjpegenc.c index 389b0a5188..a5d3c89452 100644 --- a/ext/jpeg/gstjpegenc.c +++ b/ext/jpeg/gstjpegenc.c @@ -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 "); diff --git a/ext/libpng/gstpngdec.c b/ext/libpng/gstpngdec.c index 03e40dd772..2655c43eaa 100644 --- a/ext/libpng/gstpngdec.c +++ b/ext/libpng/gstpngdec.c @@ -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 "); diff --git a/ext/libpng/gstpngenc.c b/ext/libpng/gstpngenc.c index db2748cf74..54ca7d31dd 100644 --- a/ext/libpng/gstpngenc.c +++ b/ext/libpng/gstpngenc.c @@ -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 "); diff --git a/ext/vpx/gstvp8dec.c b/ext/vpx/gstvp8dec.c index b03802ac3b..9ec1771877 100644 --- a/ext/vpx/gstvp8dec.c +++ b/ext/vpx/gstvp8dec.c @@ -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 , " diff --git a/ext/vpx/gstvp8enc.c b/ext/vpx/gstvp8enc.c index 1f46163f18..f645e5a8da 100644 --- a/ext/vpx/gstvp8enc.c +++ b/ext/vpx/gstvp8enc.c @@ -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 , "