From: Tim-Philipp Müller Date: Wed, 17 Oct 2012 15:54:14 +0000 (+0100) Subject: theora, app: use gst_element_class_set_static_metadata() X-Git-Tag: 1.19.3~511^2~5834 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=224fb90469b2b789f33d6f37e198420a546a569a;p=platform%2Fupstream%2Fgstreamer.git theora, app: use gst_element_class_set_static_metadata() Avoids string copies. --- diff --git a/ext/theora/gsttheoradec.c b/ext/theora/gsttheoradec.c index 0b238f0..23445a7 100644 --- a/ext/theora/gsttheoradec.c +++ b/ext/theora/gsttheoradec.c @@ -178,7 +178,7 @@ gst_theora_dec_class_init (GstTheoraDecClass * klass) gst_static_pad_template_get (&theora_dec_src_factory)); gst_element_class_add_pad_template (element_class, gst_static_pad_template_get (&theora_dec_sink_factory)); - gst_element_class_set_metadata (element_class, + gst_element_class_set_static_metadata (element_class, "Theora video decoder", "Codec/Decoder/Video", "decode raw theora streams to raw YUV video", "Benjamin Otte , Wim Taymans "); diff --git a/ext/theora/gsttheoraenc.c b/ext/theora/gsttheoraenc.c index f884109..a02a745 100644 --- a/ext/theora/gsttheoraenc.c +++ b/ext/theora/gsttheoraenc.c @@ -214,7 +214,7 @@ gst_theora_enc_class_init (GstTheoraEncClass * klass) gst_static_pad_template_get (&theora_enc_src_factory)); gst_element_class_add_pad_template (element_class, gst_static_pad_template_get (&theora_enc_sink_factory)); - gst_element_class_set_metadata (element_class, + gst_element_class_set_static_metadata (element_class, "Theora video encoder", "Codec/Encoder/Video", "encode raw YUV video to a theora stream", "Wim Taymans "); diff --git a/gst-libs/gst/app/gstappsink.c b/gst-libs/gst/app/gstappsink.c index 6ed9b75..fe915d0 100644 --- a/gst-libs/gst/app/gstappsink.c +++ b/gst-libs/gst/app/gstappsink.c @@ -320,7 +320,7 @@ gst_app_sink_class_init (GstAppSinkClass * klass) pull_sample), NULL, NULL, __gst_app_marshal_BOXED__VOID, GST_TYPE_SAMPLE, 0, G_TYPE_NONE); - gst_element_class_set_metadata (element_class, "AppSink", + gst_element_class_set_static_metadata (element_class, "AppSink", "Generic/Sink", "Allow the application to get access to raw buffer", "David Schleef , Wim Taymans "); diff --git a/gst-libs/gst/app/gstappsrc.c b/gst-libs/gst/app/gstappsrc.c index d9192d0..f7634ba 100644 --- a/gst-libs/gst/app/gstappsrc.c +++ b/gst-libs/gst/app/gstappsrc.c @@ -458,7 +458,7 @@ gst_app_src_class_init (GstAppSrcClass * klass) end_of_stream), NULL, NULL, __gst_app_marshal_ENUM__VOID, GST_TYPE_FLOW_RETURN, 0, G_TYPE_NONE); - gst_element_class_set_metadata (element_class, "AppSrc", + gst_element_class_set_static_metadata (element_class, "AppSrc", "Generic/Source", "Allow the application to feed buffers to a pipeline", "David Schleef , Wim Taymans ");