mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 00:36:51 +00:00
Use new gst_element_class_set_static_metadata()
This commit is contained in:
parent
eb11197c9c
commit
b06b11809b
9 changed files with 14 additions and 14 deletions
|
@ -109,7 +109,7 @@ gst_ffmpegaudioresample_base_init (gpointer g_class)
|
|||
|
||||
gst_element_class_add_static_pad_template (element_class, &src_factory);
|
||||
gst_element_class_add_static_pad_template (element_class, &sink_factory);
|
||||
gst_element_class_set_details_simple (element_class,
|
||||
gst_element_class_set_static_metadata (element_class,
|
||||
"FFMPEG Audio resampling element", "Filter/Converter/Audio",
|
||||
"Converts audio from one samplerate to another",
|
||||
"Edward Hervey <bilboed@bilboed.com>");
|
||||
|
|
|
@ -327,8 +327,8 @@ 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_details_simple (element_class, longname, classification,
|
||||
description,
|
||||
gst_element_class_set_static_metadata (element_class, longname,
|
||||
classification, description,
|
||||
"Wim Taymans <wim.taymans@gmail.com>, "
|
||||
"Ronald Bultje <rbultje@ronald.bitfreak.net>, "
|
||||
"Edward Hervey <bilboed@bilboed.com>");
|
||||
|
@ -1446,8 +1446,8 @@ gst_ffmpegdec_audio_negotiate (GstFFMpegDec * ffmpegdec, gboolean force)
|
|||
memcpy (ffmpegdec->format.audio.gst_layout,
|
||||
ffmpegdec->format.audio.ffmpeg_layout,
|
||||
sizeof (GstAudioChannelPosition) * ffmpegdec->format.audio.channels);
|
||||
gst_audio_channel_positions_to_valid_order (ffmpegdec->format.audio.
|
||||
gst_layout, ffmpegdec->format.audio.channels);
|
||||
gst_audio_channel_positions_to_valid_order (ffmpegdec->format.
|
||||
audio.gst_layout, ffmpegdec->format.audio.channels);
|
||||
|
||||
GST_LOG_OBJECT (ffmpegdec, "output caps %" GST_PTR_FORMAT, caps);
|
||||
|
||||
|
|
|
@ -168,7 +168,7 @@ gst_ffmpegdeinterlace_class_init (GstFFMpegDeinterlaceClass * klass)
|
|||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&sink_factory));
|
||||
|
||||
gst_element_class_set_details_simple (element_class,
|
||||
gst_element_class_set_static_metadata (element_class,
|
||||
"FFMPEG Deinterlace element", "Filter/Effect/Video/Deinterlace",
|
||||
"Deinterlace video", "Luca Ognibene <luogni@tin.it>");
|
||||
}
|
||||
|
|
|
@ -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_details_simple (element_class, longname,
|
||||
gst_element_class_set_static_metadata (element_class, longname,
|
||||
"Codec/Demuxer", description,
|
||||
"Wim Taymans <wim@fluendo.com>, "
|
||||
"Ronald Bultje <rbultje@ronald.bitfreak.net>, "
|
||||
|
|
|
@ -143,8 +143,8 @@ 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_details_simple (element_class, longname, classification,
|
||||
description,
|
||||
gst_element_class_set_static_metadata (element_class, longname,
|
||||
classification, description,
|
||||
"Wim Taymans <wim.taymans@gmail.com>, "
|
||||
"Ronald Bultje <rbultje@ronald.bitfreak.net>");
|
||||
g_free (longname);
|
||||
|
|
|
@ -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_details_simple (element_class, longname,
|
||||
gst_element_class_set_static_metadata (element_class, longname,
|
||||
is_formatter ? "Formatter/Metadata" : "Codec/Muxer", description,
|
||||
"Wim Taymans <wim.taymans@chello.be>, "
|
||||
"Ronald Bultje <rbultje@ronald.bitfreak.net>");
|
||||
|
|
|
@ -105,7 +105,7 @@ gst_ffmpegscale_base_init (gpointer g_class)
|
|||
|
||||
gst_element_class_add_static_pad_template (element_class, &src_factory);
|
||||
gst_element_class_add_static_pad_template (element_class, &sink_factory);
|
||||
gst_element_class_set_details_simple (element_class, "FFMPEG Scale element",
|
||||
gst_element_class_set_static_metadata (element_class, "FFMPEG Scale element",
|
||||
"Filter/Converter/Video/Scaler",
|
||||
"Converts video from one resolution to another",
|
||||
"Luca Ognibene <luogni@tin.it>");
|
||||
|
|
|
@ -365,8 +365,8 @@ gst_post_proc_base_init (GstPostProcClass * klass)
|
|||
filterdetails[ppidx].longname);
|
||||
description = g_strdup_printf ("LibPostProc %s",
|
||||
filterdetails[ppidx].description);
|
||||
gst_element_class_set_details_simple (element_class, longname, "Filter/Video",
|
||||
description,
|
||||
gst_element_class_set_static_metadata (element_class, longname,
|
||||
"Filter/Video", description,
|
||||
"Edward Hervey <edward@fluendo.com>, Mark Nauwelaerts (manauw@skynet.be)");
|
||||
g_free (longname);
|
||||
g_free (description);
|
||||
|
|
|
@ -195,7 +195,7 @@ gst_ffmpegscale_class_init (GstFFMpegScaleClass * klass)
|
|||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&sink_factory));
|
||||
|
||||
gst_element_class_set_details_simple (gstelement_class,
|
||||
gst_element_class_set_static_metadata (gstelement_class,
|
||||
"FFMPEG Scale element", "Filter/Converter/Video",
|
||||
"Converts video from one resolution to another",
|
||||
"Luca Ognibene <luogni@tin.it>, Mark Nauwelaerts <mnauw@users.sf.net>");
|
||||
|
|
Loading…
Reference in a new issue