mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-16 05:16:36 +00:00
d2c3b2087d
Original commit message from CVS: conversion to docbook-xml. i don't have to ask that this be testing, because not ionly is it perfect, but i'm sure you folks will learn that on your own :-)
38 lines
1 KiB
XML
38 lines
1 KiB
XML
<chapter id="cha-initialisation">
|
|
<title>Initializing <application>GStreamer</application></title>
|
|
<para>
|
|
When writing a <application>GStreamer</application> application, you can
|
|
simply include gst/gst.h to get access to the library functions.
|
|
</para>
|
|
<para>
|
|
Before the <application>GStreamer</application> libraries can be used
|
|
gst_init () has to be performed from the main app. this call will perform
|
|
first initialisation and will parse the GStreamer specific command line
|
|
options.
|
|
</para>
|
|
<para>
|
|
A typical program would start like this:
|
|
</para>
|
|
|
|
<programlisting>
|
|
#include <gst/gst.h>
|
|
|
|
...
|
|
|
|
int
|
|
main (int argc, char *argv[])
|
|
{
|
|
...
|
|
gst_init (&argc, &argv);
|
|
...
|
|
}
|
|
</programlisting>
|
|
<para>
|
|
It is also possible to call the gst_init method with two NULL argumants.
|
|
</para>
|
|
<para>
|
|
Use the GST_VERSION_MAJOR, GST_VERSION_MINOR and GST_VERSION_MICRO macros to
|
|
get the <application>GStreamer</application> version you are building against.
|
|
</para>
|
|
|
|
</chapter>
|