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>
|
* <title>Using an element factory</title>
|
||||||
* <programlisting language="c">
|
* <programlisting language="c">
|
||||||
* #include <gst/gst.h>
|
* #include <gst/gst.h>
|
||||||
|
*
|
||||||
* GstElement *src;
|
* GstElement *src;
|
||||||
* GstElementFactory *srcfactory;
|
* GstElementFactory *srcfactory;
|
||||||
* gst_init(&argc,&argv);
|
*
|
||||||
* srcfactory = gst_element_factory_find("filesrc");
|
* gst_init (&argc, &argv);
|
||||||
* g_return_if_fail(srcfactory != NULL);
|
*
|
||||||
* src = gst_element_factory_create(srcfactory,"src");
|
* srcfactory = gst_element_factory_find ("filesrc");
|
||||||
* g_return_if_fail(src != NULL);
|
* g_return_if_fail (srcfactory != NULL);
|
||||||
|
* src = gst_element_factory_create (srcfactory, "src");
|
||||||
|
* g_return_if_fail (src != NULL);
|
||||||
* ...
|
* ...
|
||||||
* </programlisting>
|
* </programlisting>
|
||||||
* </example>
|
* </example>
|
||||||
|
|
|
@ -81,14 +81,14 @@ gst_plugin_feature_finalize (GObject * object)
|
||||||
* unaffected; use the return value instead.
|
* unaffected; use the return value instead.
|
||||||
*
|
*
|
||||||
* Normally this function is used like this:
|
* Normally this function is used like this:
|
||||||
*
|
* |[
|
||||||
* <programlisting>
|
|
||||||
* GstPluginFeature *loaded_feature;
|
* GstPluginFeature *loaded_feature;
|
||||||
|
*
|
||||||
* loaded_feature = gst_plugin_feature_load (feature);
|
* loaded_feature = gst_plugin_feature_load (feature);
|
||||||
* // presumably, we're no longer interested in the potentially-unloaded feature
|
* // presumably, we're no longer interested in the potentially-unloaded feature
|
||||||
* gst_object_unref (feature);
|
* gst_object_unref (feature);
|
||||||
* feature = loaded_feature;
|
* feature = loaded_feature;
|
||||||
* </programlisting>
|
* ]|
|
||||||
*
|
*
|
||||||
* Returns: A reference to the loaded feature, or NULL on error.
|
* Returns: A reference to the loaded feature, or NULL on error.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue