docs: format and indent examples.

This commit is contained in:
Stefan Kost 2009-02-15 16:37:17 +02:00
parent a12b0a60d8
commit 8efaf40013
2 changed files with 11 additions and 8 deletions

View file

@ -40,13 +40,16 @@
* <title>Using an element factory</title>
* <programlisting language="c">
* #include &lt;gst/gst.h&gt;
*
* GstElement *src;
* GstElementFactory *srcfactory;
* gst_init(&amp;argc,&amp;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 (&amp;argc, &amp;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>

View file

@ -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.
*/