mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 04:31:06 +00:00
docs: format and indent examples.
This commit is contained in:
parent
a12b0a60d8
commit
8efaf40013
2 changed files with 11 additions and 8 deletions
|
@ -40,13 +40,16 @@
|
|||
* <title>Using an element factory</title>
|
||||
* <programlisting language="c">
|
||||
* #include <gst/gst.h>
|
||||
*
|
||||
* GstElement *src;
|
||||
* GstElementFactory *srcfactory;
|
||||
* gst_init(&argc,&argv);
|
||||
* srcfactory = gst_element_factory_find("filesrc");
|
||||
* g_return_if_fail(srcfactory != NULL);
|
||||
* src = gst_element_factory_create(srcfactory,"src");
|
||||
* g_return_if_fail(src != NULL);
|
||||
*
|
||||
* gst_init (&argc, &argv);
|
||||
*
|
||||
* srcfactory = gst_element_factory_find ("filesrc");
|
||||
* g_return_if_fail (srcfactory != NULL);
|
||||
* src = gst_element_factory_create (srcfactory, "src");
|
||||
* g_return_if_fail (src != NULL);
|
||||
* ...
|
||||
* </programlisting>
|
||||
* </example>
|
||||
|
|
|
@ -81,14 +81,14 @@ gst_plugin_feature_finalize (GObject * object)
|
|||
* unaffected; use the return value instead.
|
||||
*
|
||||
* Normally this function is used like this:
|
||||
*
|
||||
* <programlisting>
|
||||
* |[
|
||||
* GstPluginFeature *loaded_feature;
|
||||
*
|
||||
* loaded_feature = gst_plugin_feature_load (feature);
|
||||
* // presumably, we're no longer interested in the potentially-unloaded feature
|
||||
* gst_object_unref (feature);
|
||||
* feature = loaded_feature;
|
||||
* </programlisting>
|
||||
* ]|
|
||||
*
|
||||
* Returns: A reference to the loaded feature, or NULL on error.
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue