elements: use set_static_metadata when it's allowed

Those strings are nice but CPU doesn't want to copy them

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8905>
This commit is contained in:
Alexander Slobodeniuk 2025-04-26 19:28:56 +02:00
parent df46cfcb28
commit a03c4de48f
72 changed files with 93 additions and 88 deletions

View File

@ -79,7 +79,7 @@ gst_mockdecryptor_class_init (GstMockDecryptorClass * klass)
gst_element_class_add_static_pad_template (element_class,
&gst_mockdecryptor_src_template);
gst_element_class_set_metadata (element_class,
gst_element_class_set_static_metadata (element_class,
"Mock decryptor element for unit tests",
GST_ELEMENT_FACTORY_KLASS_DECRYPTOR,
"Use in unit tests", "Charlie Turner <cturner@igalia.com>");

View File

@ -222,7 +222,7 @@ gst_bs2b_class_init (GstBs2bClass * klass)
g_object_class_install_properties (gobject_class, PROP_LAST, properties);
gst_element_class_set_metadata (element_class,
gst_element_class_set_static_metadata (element_class,
"Crossfeed effect",
"Filter/Effect/Audio",
"Improve headphone listening of stereo audio records using the bs2b "

View File

@ -171,8 +171,8 @@ gst_gtk_wayland_sink_class_init (GstGtkWaylandSinkClass * klass)
gstelement_class->change_state =
GST_DEBUG_FUNCPTR (gst_gtk_wayland_sink_change_state);
gst_element_class_set_metadata (gstelement_class, "Gtk Wayland Video Sink",
"Sink/Video",
gst_element_class_set_static_metadata (gstelement_class,
"Gtk Wayland Video Sink", "Sink/Video",
"A video sink that renders to a GtkWidget using Wayland API",
"George Kiagiadakis <george.kiagiadakis@collabora.com>");

View File

@ -416,7 +416,7 @@ gst_srt_sink_class_init (GstSRTSinkClass * klass)
gst_srt_object_install_properties_helper (gobject_class);
gst_element_class_add_static_pad_template (gstelement_class, &sink_template);
gst_element_class_set_metadata (gstelement_class,
gst_element_class_set_static_metadata (gstelement_class,
"SRT sink", "Sink/Network",
"Send data over the network via SRT",
"Justin Kim <justin.joy.9to5@gmail.com>");

View File

@ -464,7 +464,7 @@ gst_srt_src_class_init (GstSRTSrcClass * klass)
FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
gst_element_class_add_static_pad_template (gstelement_class, &src_template);
gst_element_class_set_metadata (gstelement_class,
gst_element_class_set_static_metadata (gstelement_class,
"SRT source", "Source/Network",
"Receive data over the network via SRT",
"Justin Kim <justin.joy.9to5@gmail.com>");

View File

@ -899,8 +899,8 @@ gst_vulkan_color_convert_class_init (GstVulkanColorConvertClass * klass)
gstelement_class = (GstElementClass *) klass;
gstbasetransform_class = (GstBaseTransformClass *) klass;
gst_element_class_set_metadata (gstelement_class, "Vulkan Color Convert",
"Filter/Video/Convert", "A Vulkan Color Convert",
gst_element_class_set_static_metadata (gstelement_class,
"Vulkan Color Convert", "Filter/Video/Convert", "A Vulkan Color Convert",
"Matthew Waters <matthew@centricular.com>");
gst_element_class_add_static_pad_template (gstelement_class,

View File

@ -441,7 +441,7 @@ gst_vulkan_download_class_init (GstVulkanDownloadClass * klass)
gstelement_class = (GstElementClass *) klass;
gstbasetransform_class = (GstBaseTransformClass *) klass;
gst_element_class_set_metadata (gstelement_class, "Vulkan Downloader",
gst_element_class_set_static_metadata (gstelement_class, "Vulkan Downloader",
"Filter/Video", "A Vulkan data downloader",
"Matthew Waters <matthew@centricular.com>");

View File

@ -97,8 +97,8 @@ gst_vulkan_image_identity_class_init (GstVulkanImageIdentityClass * klass)
gstelement_class = (GstElementClass *) klass;
gstbasetransform_class = (GstBaseTransformClass *) klass;
gst_element_class_set_metadata (gstelement_class, "Vulkan Image Identity",
"Filter/Video", "A Vulkan image copier",
gst_element_class_set_static_metadata (gstelement_class,
"Vulkan Image Identity", "Filter/Video", "A Vulkan image copier",
"Matthew Waters <matthew@centricular.com>");
gst_element_class_add_static_pad_template (gstelement_class,

View File

@ -509,8 +509,9 @@ gst_vulkan_overlay_compositor_class_init (GstVulkanOverlayCompositorClass *
gstelement_class = (GstElementClass *) klass;
gstbasetransform_class = (GstBaseTransformClass *) klass;
gst_element_class_set_metadata (gstelement_class, "Vulkan Overlay Compositor",
"Filter/Video", "Vulkan Overlay Composition element",
gst_element_class_set_static_metadata (gstelement_class,
"Vulkan Overlay Compositor", "Filter/Video",
"Vulkan Overlay Composition element",
"Matthew Waters <matthew@centricular.com>");
gst_element_class_add_static_pad_template (gstelement_class,

View File

@ -162,7 +162,7 @@ gst_vulkan_shader_spv_class_init (GstVulkanShaderSpvClass * klass)
"SPIRV fragment source", NULL,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
gst_element_class_set_metadata (gstelement_class, "Vulkan Shader SPV",
gst_element_class_set_static_metadata (gstelement_class, "Vulkan Shader SPV",
"Filter/Video", "Performs operations with SPIRV shaders in Vulkan",
"Martin Reboredo <yakoyoku@gmail.com>");

View File

@ -1007,7 +1007,7 @@ gst_vulkan_upload_class_init (GstVulkanUploadClass * klass)
gobject_class->set_property = gst_vulkan_upload_set_property;
gobject_class->get_property = gst_vulkan_upload_get_property;
gst_element_class_set_metadata (gstelement_class, "Vulkan Uploader",
gst_element_class_set_static_metadata (gstelement_class, "Vulkan Uploader",
"Filter/Video", "A Vulkan data uploader",
"Matthew Waters <matthew@centricular.com>");

View File

@ -610,8 +610,8 @@ gst_vulkan_view_convert_class_init (GstVulkanViewConvertClass * klass)
GST_TYPE_VULKAN_STEREO_DOWNMIX, DEFAULT_DOWNMIX,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
gst_element_class_set_metadata (gstelement_class, "Vulkan View Convert",
"Filter/Video/Convert", "A Vulkan View Convert",
gst_element_class_set_static_metadata (gstelement_class,
"Vulkan View Convert", "Filter/Video/Convert", "A Vulkan View Convert",
"Matthew Waters <matthew@centricular.com>");
gst_type_mark_as_plugin_api (GST_TYPE_VULKAN_STEREO_DOWNMIX, 0);

View File

@ -8882,7 +8882,7 @@ gst_webrtc_bin_class_init (GstWebRTCBinClass * klass)
gst_element_class_add_static_pad_template_with_gtype (element_class,
&src_template, GST_TYPE_WEBRTC_BIN_SRC_PAD);
gst_element_class_set_metadata (element_class, "WebRTC Bin",
gst_element_class_set_static_metadata (element_class, "WebRTC Bin",
"Filter/Network/WebRTC", "A bin for webrtc connections",
"Matthew Waters <matthew@centricular.com>");

View File

@ -395,8 +395,9 @@ transport_receive_bin_class_init (TransportReceiveBinClass * klass)
gst_element_class_add_static_pad_template (element_class,
&data_sink_template);
gst_element_class_set_metadata (element_class, "WebRTC Transport Receive Bin",
"Filter/Network/WebRTC", "A bin for webrtc connections",
gst_element_class_set_static_metadata (element_class,
"WebRTC Transport Receive Bin", "Filter/Network/WebRTC",
"A bin for webrtc connections",
"Matthew Waters <matthew@centricular.com>");
gobject_class->constructed = transport_receive_bin_constructed;

View File

@ -509,8 +509,9 @@ transport_send_bin_class_init (TransportSendBinClass * klass)
gst_element_class_add_static_pad_template (element_class,
&data_sink_template);
gst_element_class_set_metadata (element_class, "WebRTC Transport Send Bin",
"Filter/Network/WebRTC", "A bin for webrtc connections",
gst_element_class_set_static_metadata (element_class,
"WebRTC Transport Send Bin", "Filter/Network/WebRTC",
"A bin for webrtc connections",
"Matthew Waters <matthew@centricular.com>");
gobject_class->constructed = transport_send_bin_constructed;

View File

@ -120,7 +120,7 @@ gst_accurip_class_init (GstAccuripClass * klass)
gstbasetrans_class->sink_event = GST_DEBUG_FUNCPTR (gst_accurip_sink_event);
gstbasetrans_class->passthrough_on_same_caps = TRUE;
gst_element_class_set_metadata (GST_ELEMENT_CLASS (klass),
gst_element_class_set_static_metadata (GST_ELEMENT_CLASS (klass),
"AccurateRip(TM) CRC element",
"Filter/Analyzer/Audio",
"Computes an AccurateRip CRC", "Christophe Fergeau <teuf@gnome.org>");

View File

@ -651,7 +651,7 @@ gst_net_sim_class_init (GstNetSimClass * klass)
gst_element_class_add_static_pad_template (gstelement_class,
&gst_net_sim_sink_template);
gst_element_class_set_metadata (gstelement_class,
gst_element_class_set_static_metadata (gstelement_class,
"Network Simulator",
"Filter/Network",
"An element that simulates network jitter, "

View File

@ -318,7 +318,7 @@ gst_rist_rtp_deext_class_init (GstRistRtpDeextClass * klass)
GstElementClass *element_class = (GstElementClass *) klass;
GObjectClass *object_class = (GObjectClass *) klass;
gst_element_class_set_metadata (element_class,
gst_element_class_set_static_metadata (element_class,
"RIST RTP Extension remover", "Filter/Network",
"Removes RIST TR-06-2 RTP Header extension",
"Olivier Crete <olivier.crete@collabora.com");

View File

@ -279,7 +279,7 @@ gst_rist_rtp_ext_class_init (GstRistRtpExtClass * klass)
GstElementClass *element_class = (GstElementClass *) klass;
GObjectClass *object_class = (GObjectClass *) klass;
gst_element_class_set_metadata (element_class,
gst_element_class_set_static_metadata (element_class,
"RIST RTP Extension adder", "Filter/Network",
"Adds RIST TR-06-2 RTP Header extension",
"Olivier Crete <olivier.crete@collabora.com");

View File

@ -1336,7 +1336,7 @@ gst_rist_sink_class_init (GstRistSinkClass * klass)
session_id_quark = g_quark_from_static_string ("gst-rist-sink-session-id");
gst_element_class_set_metadata (element_class,
gst_element_class_set_static_metadata (element_class,
"RIST Sink", "Source/Network",
"Sink that implements RIST TR-06-1 streaming specification",
"Nicolas Dufresne <nicolas.dufresne@collabora.com");

View File

@ -1350,7 +1350,7 @@ gst_rist_src_class_init (GstRistSrcClass * klass)
GstElementClass *element_class = (GstElementClass *) klass;
GObjectClass *object_class = (GObjectClass *) klass;
gst_element_class_set_metadata (element_class,
gst_element_class_set_static_metadata (element_class,
"RIST Source", "Source/Network",
"Source that implements RIST TR-06-1 streaming specification",
"Nicolas Dufresne <nicolas.dufresne@collabora.com");

View File

@ -124,7 +124,7 @@ gst_round_robin_class_init (GstRoundRobinClass * klass)
{
GstElementClass *element_class = (GstElementClass *) klass;
gst_element_class_set_metadata (element_class,
gst_element_class_set_static_metadata (element_class,
"Round Robin", "Source/Network",
"A round robin dispatcher element.",
"Nicolas Dufresne <nicolas.dufresne@collabora.com");

View File

@ -695,7 +695,7 @@ gst_amf_av1_enc_class_init (GstAmfAv1EncClass * klass, gpointer data)
}
}
gst_element_class_set_metadata (element_class,
gst_element_class_set_static_metadata (element_class,
"AMD AMF AV1 Video Encoder",
"Codec/Encoder/Video/Hardware",
"Encode AV1 video streams using AMF API",

View File

@ -820,7 +820,7 @@ gst_amf_h264_enc_class_init (GstAmfH264EncClass * klass, gpointer data)
pa_param_flags));
}
}
gst_element_class_set_metadata (element_class,
gst_element_class_set_static_metadata (element_class,
"AMD AMF H.264 Video Encoder",
"Codec/Encoder/Video/Hardware",
"Encode H.264 video streams using AMF API",

View File

@ -716,7 +716,7 @@ gst_amf_h265_enc_class_init (GstAmfH265EncClass * klass, gpointer data)
}
}
gst_element_class_set_metadata (element_class,
gst_element_class_set_static_metadata (element_class,
"AMD AMF H.265 Video Encoder",
"Codec/Encoder/Video/Hardware",
"Encode H.265 video streams using AMF API",

View File

@ -1225,7 +1225,7 @@ gst_avf_video_src_class_init (GstAVFVideoSrcClass * klass)
gstpushsrc_class->create = gst_avf_video_src_create;
gst_element_class_set_metadata (gstelement_class,
gst_element_class_set_static_metadata (gstelement_class,
"Video Source (AVFoundation)", "Source/Video/Hardware",
"Reads frames from an iOS/MacOS AVFoundation device",
"Ole André Vadla Ravnås <oleavr@soundrop.com>");

View File

@ -100,7 +100,7 @@ gst_av_sample_video_sink_class_init (GstAVSampleVideoSinkClass * klass)
"The CoreAnimation layer that can be placed in the render tree",
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
gst_element_class_set_metadata (element_class, "AV Sample video sink",
gst_element_class_set_static_metadata (element_class, "AV Sample video sink",
"Sink/Video", "A videosink based on AVSampleBuffers",
"Matthew Waters <matthew@centricular.com>");

View File

@ -229,7 +229,7 @@ gst_nv_vp8_dec_class_init (GstNvVp8DecClass * klass,
element_class->set_context = GST_DEBUG_FUNCPTR (gst_nv_vp8_dec_set_context);
parent_class = (GTypeClass *) g_type_class_peek_parent (klass);
gst_element_class_set_metadata (element_class,
gst_element_class_set_static_metadata (element_class,
"NVDEC VP8 Decoder",
"Codec/Decoder/Video/Hardware",
"NVIDIA VP8 video decoder", "Seungha Yang <seungha@centricular.com>");

View File

@ -234,7 +234,7 @@ gst_nv_vp9_dec_class_init (GstNvVp9DecClass * klass,
element_class->set_context = GST_DEBUG_FUNCPTR (gst_nv_vp9_dec_set_context);
parent_class = (GTypeClass *) g_type_class_peek_parent (klass);
gst_element_class_set_metadata (element_class,
gst_element_class_set_static_metadata (element_class,
"NVDEC VP9 Decoder",
"Codec/Decoder/Video/Hardware",
"NVIDIA VP9 video decoder", "Seungha Yang <seungha@centricular.com>");

View File

@ -442,7 +442,7 @@ gst_uvc_sink_class_init (GstUvcSinkClass * klass)
element_class->change_state = gst_uvc_sink_change_state;
gst_element_class_set_metadata (element_class,
gst_element_class_set_static_metadata (element_class,
"UVC Sink", "Sink/Video",
"Streams Video via UVC Gadget", "Michael Grzeschik <mgr@pengutronix.de>");

View File

@ -188,7 +188,7 @@ gst_test_http_src_class_init (GstTestHTTPSrcClass * klass)
"Value of the User-Agent HTTP request header field",
DEFAULT_USER_AGENT, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
gst_element_class_set_metadata (gstelement_class,
gst_element_class_set_static_metadata (gstelement_class,
"Test HTTP source element for unit tests",
"Source/Network",
"Use in unit tests", "Alex Ashley <alex.ashley@youview.com>");

View File

@ -229,7 +229,7 @@ gst_ca_opengl_layer_sink_class_init (GstCAOpenGLLayerSinkClass * klass)
"OpenGL Core Animation layer",
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
gst_element_class_set_metadata (element_class, "CAOpenGLLayer video sink",
gst_element_class_set_static_metadata (element_class, "CAOpenGLLayer video sink",
"Sink/Video", "A video sink based on CAOpenGLLayer",
"Matthew Waters <matthew@centricular.com>");

View File

@ -300,7 +300,7 @@ gst_gl_bumper_class_init (GstGLBumperClass * klass)
"Normal map location", NULL,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
gst_element_class_set_metadata (element_class, "OpenGL bumper filter",
gst_element_class_set_static_metadata (element_class, "OpenGL bumper filter",
"Filter/Effect/Video", "Bump mapping filter",
"Cyril Comparon <cyril.comparon@gmail.com>, "
"Julien Isorce <julien.isorce@gmail.com>");

View File

@ -111,7 +111,7 @@ gst_gl_color_convert_element_class_init (GstGLColorConvertElementClass * klass)
gst_element_class_add_static_pad_template (element_class,
&gst_gl_color_convert_element_sink_pad_template);
gst_element_class_set_metadata (element_class,
gst_element_class_set_static_metadata (element_class,
"OpenGL color converter", "Filter/Converter/Video",
"Converts between color spaces using OpenGL shaders",
"Matthew Waters <matthew@centricular.com>");

View File

@ -95,7 +95,7 @@ gst_gl_colorscale_class_init (GstGLColorscaleClass * klass)
gobject_class->set_property = gst_gl_colorscale_set_property;
gobject_class->get_property = gst_gl_colorscale_get_property;
gst_element_class_set_metadata (element_class, "OpenGL color scale",
gst_element_class_set_static_metadata (element_class, "OpenGL color scale",
"Filter/Effect/Video", "Colorspace converter and video scaler",
"Julien Isorce <julien.isorce@gmail.com>, "
"Matthew Waters <matthew@centricular.com>");

View File

@ -247,7 +247,7 @@ gst_gl_deinterlace_class_init (GstGLDeinterlaceClass * klass)
gobject_class->set_property = gst_gl_deinterlace_set_property;
gobject_class->get_property = gst_gl_deinterlace_get_property;
gst_element_class_set_metadata (element_class,
gst_element_class_set_static_metadata (element_class,
"OpenGL deinterlacing filter", "Deinterlace",
"Deinterlacing based on fragment shaders",
"Julien Isorce <julien.isorce@mail.com>");

View File

@ -253,7 +253,7 @@ gst_gl_differencematte_class_init (GstGLDifferenceMatteClass * klass)
"Background image location", NULL,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
gst_element_class_set_metadata (element_class,
gst_element_class_set_static_metadata (element_class,
"Gstreamer OpenGL DifferenceMatte", "Filter/Effect/Video",
"Saves a background frame and replace it with a pixbuf",
"Filippo Argiolas <filippo.argiolas@gmail.com>");

View File

@ -863,7 +863,7 @@ gst_gl_download_element_class_init (GstGLDownloadElementClass * klass)
gst_element_class_add_static_pad_template (element_class,
&gst_gl_download_element_sink_pad_template);
gst_element_class_set_metadata (element_class,
gst_element_class_set_static_metadata (element_class,
"OpenGL downloader", "Filter/Video",
"Downloads data from OpenGL", "Matthew Waters <matthew@centricular.com>");

View File

@ -349,7 +349,7 @@ gst_gl_effects_class_init (GstGLEffectsClass * klass)
klass->filter_descriptor = NULL;
gst_element_class_set_metadata (element_class,
gst_element_class_set_static_metadata (element_class,
"Gstreamer OpenGL Effects", "Filter/Effect/Video",
"GL Shading Language effects",
"Filippo Argiolas <filippo.argiolas@gmail.com>");

View File

@ -114,7 +114,7 @@ gst_gl_filter_app_class_init (GstGLFilterAppClass * klass)
G_SIGNAL_RUN_LAST, 0, NULL, NULL, NULL,
G_TYPE_BOOLEAN, 3, G_TYPE_UINT, G_TYPE_UINT, G_TYPE_UINT);
gst_element_class_set_metadata (element_class,
gst_element_class_set_static_metadata (element_class,
"OpenGL application filter", "Filter/Effect",
"Use client callbacks to define the scene",
"Julien Isorce <julien.isorce@gmail.com>");

View File

@ -105,7 +105,7 @@ gst_gl_filter_bin_class_init (GstGLFilterBinClass * klass)
g_signal_new ("create-element", G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST, 0, NULL, NULL, NULL, GST_TYPE_ELEMENT, 0);
gst_element_class_set_metadata (element_class,
gst_element_class_set_static_metadata (element_class,
"GL Filter Bin", "Filter/Video",
"Infrastructure to process GL textures",
"Matthew Waters <matthew@centricular.com>");

View File

@ -179,7 +179,7 @@ gst_gl_filter_cube_class_init (GstGLFilterCubeClass * klass)
"Specifies the distance from the viewer to the far clipping plane",
0.0, 1000.0, 100.0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
gst_element_class_set_metadata (element_class, "OpenGL cube filter",
gst_element_class_set_static_metadata (element_class, "OpenGL cube filter",
"Filter/Effect/Video", "Map input texture on the 6 cube faces",
"Julien Isorce <julien.isorce@gmail.com>");

View File

@ -165,7 +165,7 @@ gst_gl_filter_glass_class_init (GstGLFilterGlassClass * klass)
gobject_class->set_property = gst_gl_filter_glass_set_property;
gobject_class->get_property = gst_gl_filter_glass_get_property;
gst_element_class_set_metadata (element_class, "OpenGL glass filter",
gst_element_class_set_static_metadata (element_class, "OpenGL glass filter",
"Filter/Effect/Video", "Glass Filter",
"Julien Isorce <julien.isorce@gmail.com>");

View File

@ -142,7 +142,7 @@ gst_gl_filter_reflected_screen_class_init (GstGLFilterReflectedScreenClass *
"Specifies the distance from the viewer to the far clipping plane",
0.0, 1000.0, 100.0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
gst_element_class_set_metadata (element_class,
gst_element_class_set_static_metadata (element_class,
"OpenGL Reflected Screen filter", "Filter/Effect/Video",
"Reflected Screen Filter", "Pierre POUZOL <pierre.pouzol@hotmail.fr>");

View File

@ -163,7 +163,7 @@ gst_gl_filtershader_class_init (GstGLFilterShaderClass * klass)
g_signal_new ("create-shader", G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST, 0, NULL, NULL, NULL, GST_TYPE_GL_SHADER, 0);
gst_element_class_set_metadata (element_class,
gst_element_class_set_static_metadata (element_class,
"OpenGL fragment shader filter", "Filter/Effect",
"Perform operations with a GLSL shader", "<matthew@centricular.com>");

View File

@ -743,7 +743,7 @@ gst_glimage_sink_class_init (GstGLImageSinkClass * klass)
gst_video_overlay_install_properties (gobject_class, PROP_LAST);
gst_element_class_set_metadata (element_class, "OpenGL video sink",
gst_element_class_set_static_metadata (element_class, "OpenGL video sink",
"Sink/Video", "A videosink based on OpenGL",
"Julien Isorce <julien.isorce@gmail.com>");

View File

@ -277,8 +277,9 @@ gst_gl_mixer_bin_class_init (GstGLMixerBinClass * klass)
upload_caps));
gst_caps_unref (upload_caps);
gst_element_class_set_metadata (element_class, "OpenGL video_mixer empty bin",
"Bin/Filter/Effect/Video/Mixer", "OpenGL video_mixer empty bin",
gst_element_class_set_static_metadata (element_class,
"OpenGL video_mixer empty bin", "Bin/Filter/Effect/Video/Mixer",
"OpenGL video_mixer empty bin",
"Matthew Waters <matthew@centricular.com>");
gst_type_mark_as_plugin_api (GST_TYPE_GL_MIXER_BIN_START_TIME_SELECTION, 0);

View File

@ -131,7 +131,7 @@ gst_gl_mosaic_class_init (GstGLMosaicClass * klass)
GST_DEBUG_FUNCPTR (gst_gl_mosaic_request_new_pad);
element_class->release_pad = GST_DEBUG_FUNCPTR (gst_gl_mosaic_release_pad);
gst_element_class_set_metadata (element_class, "OpenGL mosaic",
gst_element_class_set_static_metadata (element_class, "OpenGL mosaic",
"Filter/Effect/Video", "OpenGL mosaic",
"Julien Isorce <julien.isorce@gmail.com>");

View File

@ -265,7 +265,7 @@ gst_gl_overlay_class_init (GstGLOverlayClass * klass)
0.0, 1.0, 1.0, GST_PARAM_CONTROLLABLE | GST_PARAM_MUTABLE_PLAYING
| G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
gst_element_class_set_metadata (element_class,
gst_element_class_set_static_metadata (element_class,
"Gstreamer OpenGL Overlay", "Filter/Effect/Video",
"Overlay GL video texture with a JPEG/PNG image",
"Filippo Argiolas <filippo.argiolas@gmail.com>, "

View File

@ -104,7 +104,7 @@ gst_gl_overlay_compositor_element_class_init (GstGLOverlayCompositorElementClass
element_class = GST_ELEMENT_CLASS (klass);
gst_element_class_set_metadata (element_class,
gst_element_class_set_static_metadata (element_class,
"OpenGL overlaying filter", "Filter/Effect",
"Flatten a stream containing GstVideoOverlayCompositionMeta",
"<matthew@centricular.com>");

View File

@ -215,7 +215,7 @@ gst_gl_sink_bin_class_init (GstGLSinkBinClass * klass)
g_signal_new ("create-element", G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST, 0, NULL, NULL, NULL, GST_TYPE_ELEMENT, 0);
gst_element_class_set_metadata (element_class,
gst_element_class_set_static_metadata (element_class,
"GL Sink Bin", "Sink/Video",
"Infrastructure to process GL textures",
"Matthew Waters <matthew@centricular.com>");

View File

@ -101,7 +101,7 @@ gst_gl_src_bin_class_init (GstGLSrcBinClass * klass)
g_signal_new ("create-element", G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST, 0, NULL, NULL, NULL, GST_TYPE_ELEMENT, 0);
gst_element_class_set_metadata (element_class,
gst_element_class_set_static_metadata (element_class,
"GL Src Bin", "Src/Video",
"Infrastructure to process GL textures",
"Matthew Waters <matthew@centricular.com>");

View File

@ -182,9 +182,9 @@ gst_gl_stereo_mix_class_init (GstGLStereoMixClass * klass)
gobject_class->get_property = gst_gl_stereo_mix_get_property;
gobject_class->set_property = gst_gl_stereo_mix_set_property;
gst_element_class_set_metadata (element_class, "OpenGL stereo video combiner",
"Filter/Effect/Video", "OpenGL stereo video combiner",
"Jan Schmidt <jan@centricular.com>");
gst_element_class_set_static_metadata (element_class,
"OpenGL stereo video combiner", "Filter/Effect/Video",
"OpenGL stereo video combiner", "Jan Schmidt <jan@centricular.com>");
g_object_class_install_property (gobject_class, PROP_DOWNMIX_MODE,
g_param_spec_enum ("downmix-mode", "Mode for mono downmixed output",

View File

@ -151,7 +151,7 @@ gst_gl_test_src_class_init (GstGLTestSrcClass * klass)
"Whether to act as a live source", FALSE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
gst_element_class_set_metadata (element_class, "Video test source",
gst_element_class_set_static_metadata (element_class, "Video test source",
"Source/Video", "Creates a test video stream",
"David A. Schleef <ds@schleef.org>");

View File

@ -241,8 +241,9 @@ gst_gl_transformation_class_init (GstGLTransformationClass * klass)
"The final Graphene 4x4 Matrix for transformation",
GRAPHENE_TYPE_MATRIX, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
gst_element_class_set_metadata (element_class, "OpenGL transformation filter",
"Filter/Effect/Video", "Transform video on the GPU",
gst_element_class_set_static_metadata (element_class,
"OpenGL transformation filter", "Filter/Effect/Video",
"Transform video on the GPU",
"Lubosz Sarnecki <lubosz@gmail.com>, "
"Matthew Waters <matthew@centricular.com>");

View File

@ -123,7 +123,7 @@ gst_gl_upload_element_class_init (GstGLUploadElementClass * klass)
gst_pad_template_new ("sink", GST_PAD_SINK, GST_PAD_ALWAYS, upload_caps));
gst_caps_unref (upload_caps);
gst_element_class_set_metadata (element_class,
gst_element_class_set_static_metadata (element_class,
"OpenGL uploader", "Filter/Video",
"Uploads data into OpenGL", "Matthew Waters <matthew@centricular.com>");

View File

@ -172,9 +172,9 @@ gst_gl_video_flip_class_init (GstGLVideoFlipClass * klass)
gst_element_class_add_static_pad_template (element_class, &_src_template);
gst_element_class_add_static_pad_template (element_class, &_sink_template);
gst_element_class_set_metadata (element_class, "OpenGL video flip filter",
"Filter/Effect/Video", "Flip video on the GPU",
"Matthew Waters <matthew@centricular.com>");
gst_element_class_set_static_metadata (element_class,
"OpenGL video flip filter", "Filter/Effect/Video",
"Flip video on the GPU", "Matthew Waters <matthew@centricular.com>");
gst_type_mark_as_plugin_api (GST_TYPE_GL_VIDEO_FLIP_METHOD, 0);
}

View File

@ -612,9 +612,9 @@ gst_gl_video_mixer_bin_class_init (GstGLVideoMixerBinClass * klass)
upload_caps, gst_gl_video_mixer_input_get_type ()));
gst_caps_unref (upload_caps);
gst_element_class_set_metadata (element_class, "OpenGL video_mixer bin",
"Bin/Filter/Effect/Video/Compositor", "OpenGL video_mixer bin",
"Matthew Waters <matthew@centricular.com>");
gst_element_class_set_static_metadata (element_class,
"OpenGL video_mixer bin", "Bin/Filter/Effect/Video/Compositor",
"OpenGL video_mixer bin", "Matthew Waters <matthew@centricular.com>");
gst_type_mark_as_plugin_api (gst_gl_video_mixer_input_get_type (), 0);
}
@ -1303,7 +1303,7 @@ gst_gl_video_mixer_class_init (GstGLVideoMixerClass * klass)
gobject_class->set_property = gst_gl_video_mixer_set_property;
gobject_class->get_property = gst_gl_video_mixer_get_property;
gst_element_class_set_metadata (element_class, "OpenGL video_mixer",
gst_element_class_set_static_metadata (element_class, "OpenGL video_mixer",
"Filter/Effect/Video/Compositor", "OpenGL video_mixer",
"Matthew Waters <matthew@centricular.com>");

View File

@ -111,7 +111,7 @@ gst_gl_view_convert_element_class_init (GstGLViewConvertElementClass * klass)
gobject_class->get_property = gst_gl_view_convert_element_get_property;
gobject_class->dispose = gst_gl_view_convert_dispose;
gst_element_class_set_metadata (element_class,
gst_element_class_set_static_metadata (element_class,
"OpenGL Multiview/3D conversion filter", "Filter",
"Convert stereoscopic/multiview video formats",
"Jan Schmidt <jan@centricular.com>, "

View File

@ -199,7 +199,7 @@ gst_cd_foo_src_class_init (GstCdFooSrcClass * klass)
GstAudioCdSrcClass *audiocdsrc_class = GST_AUDIO_CD_SRC_CLASS (klass);
GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
gst_element_class_set_metadata (element_class,
gst_element_class_set_static_metadata (element_class,
"CD Audio (cdda) Source, FooBar", "Source/File",
"Read audio from CD", "Foo Bar <foo@bar.com>");

View File

@ -119,7 +119,7 @@ gst_gtk_gl_sink_class_init (GstGtkGLSinkClass * klass)
GST_TYPE_VIDEO_ORIENTATION_METHOD, GST_VIDEO_ORIENTATION_IDENTITY,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
gst_element_class_set_metadata (gstelement_class, "Gtk GL Video Sink",
gst_element_class_set_static_metadata (gstelement_class, "Gtk GL Video Sink",
"Sink/Video", "A video sink that renders to a GtkWidget using OpenGL",
"Matthew Waters <matthew@centricular.com>");

View File

@ -66,7 +66,7 @@ gst_gtk_sink_class_init (GstGtkSinkClass * klass)
base_class->create_widget = gtk_gst_widget_new;
base_class->window_title = "Gtk+ Cairo renderer";
gst_element_class_set_metadata (gstelement_class, "Gtk Video Sink",
gst_element_class_set_static_metadata (gstelement_class, "Gtk Video Sink",
"Sink/Video", "A video sink that renders to a GtkWidget",
"Matthew Waters <matthew@centricular.com>");

View File

@ -186,7 +186,7 @@ gst_qt_overlay_class_init (GstQtOverlayClass * klass)
gobject_class->get_property = gst_qt_overlay_get_property;
gobject_class->finalize = gst_qt_overlay_finalize;
gst_element_class_set_metadata (gstelement_class, "Qt Video Overlay",
gst_element_class_set_static_metadata (gstelement_class, "Qt Video Overlay",
"Filter/QML/Overlay", "A filter that renders a QML scene onto a video stream",
"Matthew Waters <matthew@centricular.com>");

View File

@ -158,7 +158,7 @@ gst_qt_sink_class_init (GstQtSinkClass * klass)
gobject_class->set_property = gst_qt_sink_set_property;
gobject_class->get_property = gst_qt_sink_get_property;
gst_element_class_set_metadata (gstelement_class, "Qt Video Sink",
gst_element_class_set_static_metadata (gstelement_class, "Qt Video Sink",
"Sink/Video", "A video sink that renders to a QQuickItem",
"Matthew Waters <matthew@centricular.com>");

View File

@ -101,7 +101,7 @@ gst_qt_src_class_init (GstQtSrcClass * klass)
gobject_class->get_property = gst_qt_src_get_property;
gobject_class->finalize = gst_qt_src_finalize;
gst_element_class_set_metadata (gstelement_class, "Qt Video Source",
gst_element_class_set_static_metadata (gstelement_class, "Qt Video Source",
"Source/Video", "A video src that captures a window from a QML view",
"Multimedia Team <shmmmw@freescale.com>");

View File

@ -319,7 +319,7 @@ gst_qml6_gl_mixer_class_init (GstQml6GLMixerClass * klass)
gobject_class->get_property = gst_qml6_gl_mixer_get_property;
gobject_class->finalize = gst_qml6_gl_mixer_finalize;
gst_element_class_set_metadata (gstelement_class, "Qt6 Video Mixer",
gst_element_class_set_static_metadata (gstelement_class, "Qt6 Video Mixer",
"Video/QML/Mixer", "A mixer that renders a QML scene",
"Matthew Waters <matthew@centricular.com>");

View File

@ -187,7 +187,7 @@ gst_qml6_gl_overlay_class_init (GstQml6GLOverlayClass * klass)
gobject_class->get_property = gst_qml6_gl_overlay_get_property;
gobject_class->finalize = gst_qml6_gl_overlay_finalize;
gst_element_class_set_metadata (gstelement_class, "Qt Video Overlay",
gst_element_class_set_static_metadata (gstelement_class, "Qt Video Overlay",
"Filter/QML/Overlay", "A filter that renders a QML scene onto a video stream",
"Matthew Waters <matthew@centricular.com>");

View File

@ -161,7 +161,7 @@ gst_qml6_gl_sink_class_init (GstQml6GLSinkClass * klass)
gobject_class->set_property = gst_qml6_gl_sink_set_property;
gobject_class->get_property = gst_qml6_gl_sink_get_property;
gst_element_class_set_metadata (gstelement_class, "Qt6 Video Sink",
gst_element_class_set_static_metadata (gstelement_class, "Qt6 Video Sink",
"Sink/Video", "A video sink that renders to a QQuickItem for Qt6",
"Matthew Waters <matthew@centricular.com>");

View File

@ -105,7 +105,7 @@ gst_qml6_gl_src_class_init (GstQml6GLSrcClass * klass)
gobject_class->get_property = gst_qml6_gl_src_get_property;
gobject_class->finalize = gst_qml6_gl_src_finalize;
gst_element_class_set_metadata (gstelement_class, "Qt Video Source",
gst_element_class_set_static_metadata (gstelement_class, "Qt Video Source",
"Source/Video", "A video src that captures a window from a QML view",
"Multimedia Team <shmmmw@freescale.com>");

View File

@ -619,7 +619,7 @@ gst_rtp_red_dec_class_init (GstRtpRedDecClass * klass)
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&sink_template));
gst_element_class_set_metadata (element_class,
gst_element_class_set_static_metadata (element_class,
"Redundant Audio Data (RED) Decoder",
"Codec/Depayloader/Network/RTP",
"Decode Redundant Audio Data (RED)",

View File

@ -545,7 +545,7 @@ gst_rtp_red_enc_class_init (GstRtpRedEncClass * klass)
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&sink_template));
gst_element_class_set_metadata (element_class,
gst_element_class_set_static_metadata (element_class,
"Redundant Audio Data (RED) Encoder",
"Codec/Payloader/Network/RTP",
"Encode Redundant Audio Data (RED)",

View File

@ -890,7 +890,7 @@ test_mp3_enc_class_init (TestMp3EncClass * klass)
gst_element_class_add_static_pad_template (element_class, &sink_template);
gst_element_class_add_static_pad_template (element_class, &src_template);
gst_element_class_set_metadata (element_class, "MPEG1 Audio Encoder",
gst_element_class_set_static_metadata (element_class, "MPEG1 Audio Encoder",
"Codec/Encoder/Audio", "Pretends to encode mp3", "Foo Bar <foo@bar.com>");
}