Function gstreamer::functions::parse_launch_full[][src]

pub fn parse_launch_full(
    pipeline_description: &str,
    context: Option<&mut ParseContext>,
    flags: ParseFlags
) -> 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 gst_parse_bin_from_description_full().

pipeline_description

the command line describing the pipeline

context

a parse context allocated with ParseContext::new(), or None

flags

parsing options, or GST_PARSE_FLAG_NONE

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 then is returned (unless the GST_PARSE_FLAG_PLACE_IN_BIN flag is set, in which case they are put in a Bin instead).