Trait Base SrcExt Manual
Source pub trait BaseSrcExtManual: 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§
Sourcefn allocator(&self) -> (Option<Allocator>, AllocationParams)
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
fn segment(&self) -> Segment
Sourcefn query_latency(
&self,
) -> Result<(bool, Option<ClockTime>, Option<ClockTime>), BoolError>
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
fn src_pad(&self) -> &Pad
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.