Function gstreamer::parse_launch [−][src]
pub fn parse_launch(pipeline_description: &str) -> Result<Element, Error>
Expand description
Create a new pipeline based on command line syntax.
Please note that you might get a return value that is not None
even though
the error
is set. In this case there was a recoverable parsing error and you
can try to play the pipeline.
To create a sub-pipeline (bin) for embedding into an existing pipeline
use parse_bin_from_description()
.
pipeline_description
the command line describing the pipeline
Returns
a new element on success, None
on
failure. If more than one toplevel element is specified by the
pipeline_description
, all elements are put into a Pipeline
, which
than is returned.