The GstElementDetails structure provides a hierarchical type for element information. The entries are:
A long, English, name for the element.
The type of the element, see the docs/design/draft-klass.txt document in the GStreamer core source tree for details and examples.
A brief description of the purpose of the element.
The name of the author of the element, optionally followed by a contact email address in angle brackets.
For example:
static const GstElementDetails my_filter_details = {
"An example plugin",
"Example/FirstExample",
"Shows the basic structure of a plugin",
"your name <your.name@your.isp>"
};
The element details are registered with the plugin during
the _base_init () function, which is part of
the GObject system. The _base_init () function
should be set for this GObject in the function where you register
the type with GLib.
static void
gst_my_filter_base_init (gpointer klass)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
static const GstElementDetails my_filter_details = {
[..]
};
[..]
gst_element_class_set_details (element_class, &my_filter_details);
}