diff options
author | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2012-10-17 17:34:26 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2012-10-17 17:46:34 +0100 |
commit | 942680d97985035b6de1d8ae67ac0556884e48a0 (patch) | |
tree | 1fc1101818115782d8a1ff696571320f72016fb7 | |
parent | f1227a374ad320e90d9d15494c401d167eb63b88 (diff) | |
download | gstreamer-plugins-base-942680d97985035b6de1d8ae67ac0556884e48a0.tar.gz |
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.
-rw-r--r-- | ext/opus/gstopusdec.c | 2 | ||||
-rw-r--r-- | ext/opus/gstopusenc.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/opus/gstopusdec.c b/ext/opus/gstopusdec.c index c4335265f..66e4b5d85 100644 --- a/ext/opus/gstopusdec.c +++ b/ext/opus/gstopusdec.c @@ -121,7 +121,7 @@ gst_opus_dec_class_init (GstOpusDecClass * klass) gst_static_pad_template_get (&opus_dec_src_factory)); gst_element_class_add_pad_template (element_class, gst_static_pad_template_get (&opus_dec_sink_factory)); - gst_element_class_set_metadata (element_class, "Opus audio decoder", + gst_element_class_set_static_metadata (element_class, "Opus audio decoder", "Codec/Decoder/Audio", "decode opus streams to audio", "Vincent Penquerc'h <vincent.penquerch@collabora.co.uk>"); diff --git a/ext/opus/gstopusenc.c b/ext/opus/gstopusenc.c index a33f0e45a..f6f83788b 100644 --- a/ext/opus/gstopusenc.c +++ b/ext/opus/gstopusenc.c @@ -205,7 +205,7 @@ gst_opus_enc_class_init (GstOpusEncClass * 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, "Opus audio encoder", + gst_element_class_set_static_metadata (gstelement_class, "Opus audio encoder", "Codec/Encoder/Audio", "Encodes audio in Opus format", "Vincent Penquerc'h <vincent.penquerch@collabora.co.uk>"); |