From c1ae78ecea8c7a06ebb96f074231272a3cd5a6d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Tue, 10 Apr 2012 00:59:24 +0100 Subject: [PATCH] ffmpeg: use set_metadata() for generated strings Reverts parts of previous commit. --- ext/ffmpeg/gstffmpegdec.c | 2 +- ext/ffmpeg/gstffmpegdemux.c | 2 +- ext/ffmpeg/gstffmpegenc.c | 2 +- ext/ffmpeg/gstffmpegmux.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ext/ffmpeg/gstffmpegdec.c b/ext/ffmpeg/gstffmpegdec.c index 0927fa6258..c38242a0d6 100644 --- a/ext/ffmpeg/gstffmpegdec.c +++ b/ext/ffmpeg/gstffmpegdec.c @@ -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 , " "Ronald Bultje , " diff --git a/ext/ffmpeg/gstffmpegdemux.c b/ext/ffmpeg/gstffmpegdemux.c index 6896593d27..ae72c5454b 100644 --- a/ext/ffmpeg/gstffmpegdemux.c +++ b/ext/ffmpeg/gstffmpegdemux.c @@ -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 , " "Ronald Bultje , " diff --git a/ext/ffmpeg/gstffmpegenc.c b/ext/ffmpeg/gstffmpegenc.c index ddf7f8f32c..4cd018f107 100644 --- a/ext/ffmpeg/gstffmpegenc.c +++ b/ext/ffmpeg/gstffmpegenc.c @@ -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 , " "Ronald Bultje "); diff --git a/ext/ffmpeg/gstffmpegmux.c b/ext/ffmpeg/gstffmpegmux.c index 33023ac74d..4bfea738c4 100644 --- a/ext/ffmpeg/gstffmpegmux.c +++ b/ext/ffmpeg/gstffmpegmux.c @@ -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 , " "Ronald Bultje ");