mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 19:55:32 +00:00
vaapidecode: rename element description
So encoders and decoders have similar descriptions. https://bugzilla.gnome.org/show_bug.cgi?id=773497
This commit is contained in:
parent
43dd4b7452
commit
039e8c0d56
1 changed files with 5 additions and 2 deletions
|
@ -1292,7 +1292,7 @@ gst_vaapidecode_class_init (GstVaapiDecodeClass * klass)
|
||||||
GstVideoDecoderClass *const vdec_class = GST_VIDEO_DECODER_CLASS (klass);
|
GstVideoDecoderClass *const vdec_class = GST_VIDEO_DECODER_CLASS (klass);
|
||||||
GstPadTemplate *pad_template;
|
GstPadTemplate *pad_template;
|
||||||
GstVaapiDecoderMap *map;
|
GstVaapiDecoderMap *map;
|
||||||
gchar *name, *longname;
|
gchar *name, *longname, *description;
|
||||||
GstCaps *caps;
|
GstCaps *caps;
|
||||||
|
|
||||||
GST_DEBUG_CATEGORY_INIT (gst_debug_vaapidecode,
|
GST_DEBUG_CATEGORY_INIT (gst_debug_vaapidecode,
|
||||||
|
@ -1327,20 +1327,23 @@ gst_vaapidecode_class_init (GstVaapiDecodeClass * klass)
|
||||||
if (map->codec) {
|
if (map->codec) {
|
||||||
name = g_ascii_strup (map->name, -1);
|
name = g_ascii_strup (map->name, -1);
|
||||||
longname = g_strdup_printf ("VA-API %s decoder", name);
|
longname = g_strdup_printf ("VA-API %s decoder", name);
|
||||||
|
description = g_strdup_printf ("A VA-API based %s video decoder", name);
|
||||||
g_free (name);
|
g_free (name);
|
||||||
} else {
|
} else {
|
||||||
longname = g_strdup ("VA-API decoder");
|
longname = g_strdup ("VA-API decoder");
|
||||||
|
description = g_strdup (GST_PLUGIN_DESC);
|
||||||
}
|
}
|
||||||
|
|
||||||
element_class->set_context = gst_vaapi_base_set_context;
|
element_class->set_context = gst_vaapi_base_set_context;
|
||||||
gst_element_class_set_static_metadata (element_class, longname,
|
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>, "
|
"Gwenole Beauchesne <gwenole.beauchesne@intel.com>, "
|
||||||
"Halley Zhao <halley.zhao@intel.com>, "
|
"Halley Zhao <halley.zhao@intel.com>, "
|
||||||
"Sreerenj Balachandran <sreerenj.balachandran@intel.com>, "
|
"Sreerenj Balachandran <sreerenj.balachandran@intel.com>, "
|
||||||
"Wind Yuan <feng.yuan@intel.com>");
|
"Wind Yuan <feng.yuan@intel.com>");
|
||||||
|
|
||||||
g_free (longname);
|
g_free (longname);
|
||||||
|
g_free (description);
|
||||||
|
|
||||||
/* sink pad */
|
/* sink pad */
|
||||||
caps = gst_caps_from_string (map->caps_str);
|
caps = gst_caps_from_string (map->caps_str);
|
||||||
|
|
Loading…
Reference in a new issue