pub struct PrimaryStream {
pub demux: &'static str,
pub props: Vec<(String, String)>,
pub caps: Caps,
}Expand description
The single-stream demux + decode chain a bare (non-fan-out) decodebin
should build for a file-backed container whose default single-stream demux
guesses the wrong port (M746). A single-stream demuxer fixes its output pad
at negotiation before parsing any byte, so it defaults to a video port; an
audio-only MPEG-TS then auto-plugs a video decoder and fails “no caps
overlap”. expand_decodebin consults a hook so the demux instead selects the
container’s real (audio) stream, building filesrc ! demux stream=X ! <decoder> ! ....
Fields§
§demux: &'static strThe single-stream demux element to plug (e.g. "tsdemux").
props: Vec<(String, String)>Properties that select the primary stream on demux (e.g.
[("stream", "aac")]).
caps: CapsThe elementary caps the demux emits for that stream, the auto-plug input for the decoder chain spliced after it.
Trait Implementations§
Source§impl Clone for PrimaryStream
impl Clone for PrimaryStream
Source§fn clone(&self) -> PrimaryStream
fn clone(&self) -> PrimaryStream
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more