Skip to content
Snippets Groups Projects
Commit ed1a0be4 authored by Thomas Vander Stichele's avatar Thomas Vander Stichele
Browse files

some cleaning

Original commit message from CVS:
some cleaning
parent 481d5428
No related branches found
Tags BRANCH-RELEASE-0_5_1-ROOT
No related merge requests found
...@@ -265,19 +265,19 @@ U gst-template/gst-app/src/Makefile.am ...@@ -265,19 +265,19 @@ U gst-template/gst-app/src/Makefile.am
<para> <para>
Once we have written code defining all the parts of the plugin, we need to Once we have written code defining all the parts of the plugin, we need to
write the plugin_init() function. This is a special function, which is write the plugin_init() function. This is a special function, which is
called as soon as the plugin is loaded, and must return a pointer to a newly called as soon as the plugin is loaded, and must return a pointer to a
allocated GstPlugin structure. This structure contains the details of all newly allocated GstPlugin structure. This structure contains the details
the facilities provided by the plugin, and is the mechanism by which the of all the facilities provided by the plugin, and is the mechanism by
definitions are made available to the rest of the &GStreamer; system. Helper which the definitions are made available to the rest of the &GStreamer;
functions are provided to help fill the structure: for future compatability system. Helper functions are provided to help fill the structure: for
it is recommended that these functions are used, as documented below, rather future compatability it is required that these functions are used, as
than attempting to access the structure directly. documented below, rather than attempting to access the structure directly.
</para> </para>
<para> <para>
Note that the information returned by the plugin_init() function will be Note that the information returned by the plugin_init() function will be
cached in a central registry. For this reason, it is important that the same cached in a central registry. For this reason, it is important that the
information is always returned by the function: for example, it must not same information is always returned by the function: for example, it
make element factories available based on runtime conditions. If an element must not make element factories available based on runtime conditions. If an element
can only work in certain conditions (for example, if the soundcard is not can only work in certain conditions (for example, if the soundcard is not
being used by some other process) this must be reflected by the element being used by some other process) this must be reflected by the element
being unable to enter the READY state if unavailable, rather than the plugin being unable to enter the READY state if unavailable, rather than the plugin
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment