ffmpeg: use set_metadata() for generated strings

Reverts parts of previous commit.
This commit is contained in:
Tim-Philipp Müller 2012-04-10 00:59:24 +01:00
parent b06b11809b
commit c1ae78ecea
4 changed files with 4 additions and 4 deletions

View file

@ -327,7 +327,7 @@ gst_ffmpegdec_base_init (GstFFMpegDecClass * klass)
classification = g_strdup_printf ("Codec/Decoder/%s",
(in_plugin->type == AVMEDIA_TYPE_VIDEO) ? "Video" : "Audio");
description = g_strdup_printf ("FFmpeg %s decoder", in_plugin->name);
gst_element_class_set_static_metadata (element_class, longname,
gst_element_class_set_metadata (element_class, longname,
classification, description,
"Wim Taymans <wim.taymans@gmail.com>, "
"Ronald Bultje <rbultje@ronald.bitfreak.net>, "

View file

@ -202,7 +202,7 @@ gst_ffmpegdemux_base_init (GstFFMpegDemuxClass * klass)
/* construct the element details struct */
longname = g_strdup_printf ("FFmpeg %s demuxer", in_plugin->long_name);
description = g_strdup_printf ("FFmpeg %s demuxer", in_plugin->long_name);
gst_element_class_set_static_metadata (element_class, longname,
gst_element_class_set_metadata (element_class, longname,
"Codec/Demuxer", description,
"Wim Taymans <wim@fluendo.com>, "
"Ronald Bultje <rbultje@ronald.bitfreak.net>, "

View file

@ -143,7 +143,7 @@ gst_ffmpegenc_base_init (GstFFMpegEncClass * klass)
classification = g_strdup_printf ("Codec/Encoder/%s",
(in_plugin->type == AVMEDIA_TYPE_VIDEO) ? "Video" : "Audio");
description = g_strdup_printf ("FFmpeg %s encoder", in_plugin->name);
gst_element_class_set_static_metadata (element_class, longname,
gst_element_class_set_metadata (element_class, longname,
classification, description,
"Wim Taymans <wim.taymans@gmail.com>, "
"Ronald Bultje <rbultje@ronald.bitfreak.net>");

View file

@ -229,7 +229,7 @@ gst_ffmpegmux_base_init (gpointer g_class)
description = g_strdup_printf ("FFmpeg %s %s", in_plugin->long_name,
is_formatter ? "formatter" : "muxer");
}
gst_element_class_set_static_metadata (element_class, longname,
gst_element_class_set_metadata (element_class, longname,
is_formatter ? "Formatter/Metadata" : "Codec/Muxer", description,
"Wim Taymans <wim.taymans@chello.be>, "
"Ronald Bultje <rbultje@ronald.bitfreak.net>");