pub enum ParseError {
Show 25 variants
Empty,
EmptyStage,
TooFewStages,
UnknownSource(String),
UnknownElement(String),
MalformedProperty {
element: String,
token: String,
},
UnknownProperty {
element: String,
key: String,
},
BadValue {
element: String,
key: String,
value: String,
},
BadEnumValue {
element: String,
key: String,
value: String,
values: &'static str,
},
UnknownReference(String),
DuplicateName(String),
NotAMuxer(String),
MuxerWithoutOutput(String),
UnknownInputPad(String),
DuplicateInputPad(String),
QueueRole(String),
DecodebinNoUpstream,
NoDecodeChain(String),
EncodingProfile(String),
NoEncoder(String),
EncodebinInput(String),
UriSourceNotAtHead(String),
MissingUri(String),
Uri(String),
Graph(GraphError),
}Expand description
Why parse_launch could not build a graph.
Variants§
Empty
The pipeline string was empty or all whitespace.
EmptyStage
A node between ! separators had no element name.
TooFewStages
Fewer than two elements: a runnable pipeline needs at least a source and a sink.
UnknownSource(String)
A source-position element names no registered source.
UnknownElement(String)
A transform / sink-position element names no registered element.
MalformedProperty
A property token had no = (expected key=value).
UnknownProperty
The element has no property of that name.
BadValue
The value did not parse for the property’s kind, or was rejected.
BadEnumValue
The value names no declared choice of an enum / flag property. value is
the offending nick (one entry of a +-joined set), or the whole value when
the set was malformed; values is the property’s declared list.
UnknownReference(String)
A name. reference names no element declared with that name=.
DuplicateName(String)
Two elements share the same name= handle.
NotAMuxer(String)
More than one link feeds an element’s input, but it names no registered
muxer: fan-in needs a MuxerFactory.
MuxerWithoutOutput(String)
A muxer (an element with several inputs) has no outgoing link; its single output pad must feed a downstream consumer.
UnknownInputPad(String)
A named input-pad reference (mux.foo_0) names a request pad this muxer
does not define (M481): the element’s input_pad_index scheme declined it.
DuplicateInputPad(String)
Two input-pad references resolve to the same muxer input index (M481), e.g.
mux.video_0 named twice, or a named pad colliding with a positional one.
QueueRole(String)
A queue / queue2 sits anywhere but a 1-in/1-out position. It is not an
element in g2g (it collapses into the edge’s backpressure policy), so it
cannot be a source, a sink, or a fan-out / fan-in node.
DecodebinNoUpstream
A decodebin has no upstream element to take its input caps from (it was
the first element, or followed a bare name. reference). decodebin
auto-plugs from its predecessor’s declared caps, so it needs one.
NoDecodeChain(String)
decodebin found no chain of registered decoders / parsers from its input
caps to raw video or audio (the input caps are quoted). Either no decoder
feature is compiled in, or the input is a container that needs a demuxer
(auto-plugging through fan-out demuxers is not yet supported).
EncodingProfile(String)
An encodebin had no profile=, or one that is not
container-caps:stream-caps[:stream-caps...] (the message says which).
NoEncoder(String)
An encodebin profile named a container no registered muxer writes, or a
stream codec no compiled-in encoder produces (the message quotes it).
EncodebinInput(String)
An encodebin chain’s input is not raw video or audio, or its profile has
no stream of that kind, so nothing in the profile can encode it.
UriSourceNotAtHead(String)
A uridecodebin / playbin was not at the head of its chain. It provides
the source, so it must start the pipeline.
MissingUri(String)
A uridecodebin / playbin had no uri= property.
Uri(String)
The uri= could not be turned into a source (bad URI, or no handler
registered for its scheme). The message quotes the URI and reason.
Graph(GraphError)
Linking two nodes into the graph failed.
Trait Implementations§
Source§impl Clone for ParseError
impl Clone for ParseError
Source§fn clone(&self) -> ParseError
fn clone(&self) -> ParseError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more