summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>2016-10-25 19:22:03 +0200
committerVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>2016-10-25 19:36:07 +0200
commit039e8c0d5626fd13acb85f049151245b9726abb0 (patch)
tree3d5fe3485441f90951a6c2c7f75fe02d27f60738
parent43dd4b7452137d996fb335deefd64f04d7d2092d (diff)
vaapidecode: rename element description
So encoders and decoders have similar descriptions. https://bugzilla.gnome.org/show_bug.cgi?id=773497
-rw-r--r--gst/vaapi/gstvaapidecode.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gst/vaapi/gstvaapidecode.c b/gst/vaapi/gstvaapidecode.c
index c0143743..3b9c949b 100644
--- a/gst/vaapi/gstvaapidecode.c
+++ b/gst/vaapi/gstvaapidecode.c
@@ -1292,7 +1292,7 @@ gst_vaapidecode_class_init (GstVaapiDecodeClass * klass)
GstVideoDecoderClass *const vdec_class = GST_VIDEO_DECODER_CLASS (klass);
GstPadTemplate *pad_template;
GstVaapiDecoderMap *map;
- gchar *name, *longname;
+ gchar *name, *longname, *description;
GstCaps *caps;
GST_DEBUG_CATEGORY_INIT (gst_debug_vaapidecode,
@@ -1327,20 +1327,23 @@ gst_vaapidecode_class_init (GstVaapiDecodeClass * klass)
if (map->codec) {
name = g_ascii_strup (map->name, -1);
longname = g_strdup_printf ("VA-API %s decoder", name);
+ description = g_strdup_printf ("A VA-API based %s video decoder", name);
g_free (name);
} else {
longname = g_strdup ("VA-API decoder");
+ description = g_strdup (GST_PLUGIN_DESC);
}
element_class->set_context = gst_vaapi_base_set_context;
gst_element_class_set_static_metadata (element_class, longname,
- "Codec/Decoder/Video", GST_PLUGIN_DESC,
+ "Codec/Decoder/Video", description,
"Gwenole Beauchesne <gwenole.beauchesne@intel.com>, "
"Halley Zhao <halley.zhao@intel.com>, "
"Sreerenj Balachandran <sreerenj.balachandran@intel.com>, "
"Wind Yuan <feng.yuan@intel.com>");
g_free (longname);
+ g_free (description);
/* sink pad */
caps = gst_caps_from_string (map->caps_str);