2002-01-15 00:41:22 +00:00
|
|
|
<!-- ##### SECTION Title ##### -->
|
|
|
|
GstParse
|
|
|
|
|
|
|
|
<!-- ##### SECTION Short_Description ##### -->
|
2004-03-25 04:20:33 +00:00
|
|
|
Parses pipeline syntax into elements
|
2002-01-15 00:41:22 +00:00
|
|
|
|
|
|
|
<!-- ##### SECTION Long_Description ##### -->
|
|
|
|
<para>
|
|
|
|
This method allows you to create a pipeline from a command
|
|
|
|
line syntax description. The following example creates a simple
|
|
|
|
mp3 player.
|
|
|
|
<programlisting>
|
|
|
|
GstElement *pipeline;
|
|
|
|
|
|
|
|
/* create a pipeline to hold our elements */
|
|
|
|
pipeline = gst_pipeline_new ("launch");
|
|
|
|
|
|
|
|
/* build a pipeline in the pipeline */
|
|
|
|
gst_parse_launch ("filesrc location=some.mp3 ! mad ! osssink", GST_BIN (pipeline));
|
|
|
|
|
|
|
|
/* play the thing */
|
|
|
|
gst_element_set_state (pipeline, GST_STATE_PLAYING);
|
|
|
|
|
|
|
|
while (gst_bin_iterate (GST_BIN (pipeline)));
|
|
|
|
|
|
|
|
gst_element_set_state (pipeline, GST_STATE_NULL);
|
|
|
|
|
|
|
|
</programlisting>
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
Elements are separated with a <option>!</option>, properties are set with
|
|
|
|
<replaceable>property</replaceable>=<replaceable>value</replaceable>, specific pads
|
|
|
|
of an element are selected by replacing the <option>!</option> with
|
|
|
|
<replaceable>padname</replaceable><option>!</option>.
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
Elements can be added to a bin by embracing them with <option>()</option>. Threads
|
|
|
|
can be made with <option>{}</option>.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### SECTION See_Also ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2004-03-25 04:20:33 +00:00
|
|
|
<!-- ##### FUNCTION gst_parse_error_quark ##### -->
|
2002-01-15 00:41:22 +00:00
|
|
|
<para>
|
2004-03-25 04:20:33 +00:00
|
|
|
Get the error quark passed in the GError messages.
|
2002-01-15 00:41:22 +00:00
|
|
|
</para>
|
|
|
|
|
2004-03-25 04:20:33 +00:00
|
|
|
@Returns: The parse error quark
|
|
|
|
|
2002-06-12 22:27:18 +00:00
|
|
|
|
|
|
|
<!-- ##### MACRO GST_PARSE_ERROR ##### -->
|
|
|
|
<para>
|
2002-12-14 13:02:16 +00:00
|
|
|
The error quark
|
2002-06-12 22:27:18 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
|
|
|
|
|
2004-03-25 04:20:33 +00:00
|
|
|
<!-- ##### ENUM GstParseError ##### -->
|
2002-06-12 22:27:18 +00:00
|
|
|
<para>
|
2004-03-25 04:20:33 +00:00
|
|
|
The parsing errors.
|
2002-06-12 22:27:18 +00:00
|
|
|
</para>
|
|
|
|
|
2004-03-25 04:20:33 +00:00
|
|
|
@GST_PARSE_ERROR_SYNTAX: A syntax error was detected
|
|
|
|
@GST_PARSE_ERROR_NO_SUCH_ELEMENT: The pipeline description contains a non existing element
|
|
|
|
@GST_PARSE_ERROR_NO_SUCH_PROPERTY: The pipeline description contains a non existing element property
|
|
|
|
@GST_PARSE_ERROR_LINK: A pad link could not be made
|
|
|
|
@GST_PARSE_ERROR_COULD_NOT_SET_PROPERTY:
|
|
|
|
@GST_PARSE_ERROR_EMPTY_BIN:
|
|
|
|
@GST_PARSE_ERROR_EMPTY:
|
2002-01-15 00:41:22 +00:00
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_parse_launch ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@pipeline_description:
|
2002-04-07 23:32:16 +00:00
|
|
|
@error:
|
2002-01-15 00:41:22 +00:00
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_parse_launchv ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@argv:
|
2002-04-07 23:32:16 +00:00
|
|
|
@error:
|
2002-01-15 00:41:22 +00:00
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|