pub trait BaseSrcExtManual: Sealed + IsA<BaseSrc> + 'static {
    // Provided methods
    fn allocator(&self) -> (Option<Allocator>, AllocationParams) { ... }
    fn segment(&self) -> Segment { ... }
    fn query_latency(
        &self
    ) -> Result<(bool, Option<ClockTime>, Option<ClockTime>), BoolError> { ... }
    fn src_pad(&self) -> &Pad { ... }
}

Provided Methods§

source

fn allocator(&self) -> (Option<Allocator>, AllocationParams)

Lets BaseSrc sub-classes to know the memory allocator used by the base class and its params.

Unref the allocator after usage.

§Returns
§allocator

the gst::Allocator used

§params

the gst::AllocationParams of allocator

source

fn segment(&self) -> Segment

source

fn query_latency( &self ) -> Result<(bool, Option<ClockTime>, Option<ClockTime>), BoolError>

Query the source for the latency parameters. live will be true when self is configured as a live source. min_latency and max_latency will be set to the difference between the running time and the timestamp of the first buffer.

This function is mostly used by subclasses.

§Returns

true if the query succeeded.

§live

if the source is live

§min_latency

the min latency of the source

§max_latency

the max latency of the source

source

fn src_pad(&self) -> &Pad

Object Safety§

This trait is not object safe.

Implementors§