element, which is guaranteed to be a bin unless #GST_PARSE_FLAG_NO_SINGLE_ELEMENT_BINS was passed, or null if an error occurred.
parseBinFromDescriptionFull
fn
gst.element.Element parseBinFromDescriptionFull(string binDescription, bool ghostUnlinkedPads, gst.parse_context.ParseContext context, gst.types.ParseFlags flags)This is a convenience wrapper around [gst.global.parseLaunch] to create a #GstBin from a gst-launch-style pipeline description. See [gst.global.parseLaunch] 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).
Parameters
binDescription | command line describing the bin |
ghostUnlinkedPads | whether to automatically create ghost pads for unlinked source or sink pads within the bin |
context | a parse context allocated with [gst.parse_context.ParseContext.new_], or null |
flags | parsing options, or #GST_PARSE_FLAG_NONE |
Returns
a newly-created
Throws
[ErrorWrap]