Function gstreamer::parse::bin_from_description
source · pub fn bin_from_description(
bin_description: &str,
ghost_unlinked_pads: bool,
) -> Result<Bin, Error>
Expand description
This is a convenience wrapper around [parse_launch()
][crate::parse_launch()] to create a
Bin
from a gst-launch-style pipeline description. See
[parse_launch()
][crate::parse_launch()] and the gst-launch man page for details about the
syntax. Ghost pads on the bin for unlinked source or sink pads
within the bin can automatically be created (but only a maximum of
one ghost pad for each direction will be created; if you expect
multiple unlinked source pads or multiple unlinked sink pads
and want them all ghosted, you will have to create the ghost pads
yourself).
§bin_description
command line describing the bin
§ghost_unlinked_pads
whether to automatically create ghost pads for unlinked source or sink pads within the bin
§Returns
a
newly-created bin, or None
if an error occurred.