Trait gstreamer_base::prelude::BaseSinkExtManual
source · pub trait BaseSinkExtManual: Sealed + IsA<BaseSink> + 'static {
// Provided methods
fn segment(&self) -> Segment { ... }
fn query_latency(
&self,
) -> Result<(bool, bool, Option<ClockTime>, Option<ClockTime>), BoolError> { ... }
fn sink_pad(&self) -> &Pad { ... }
}
Provided Methods§
fn segment(&self) -> Segment
sourcefn query_latency(
&self,
) -> Result<(bool, bool, Option<ClockTime>, Option<ClockTime>), BoolError>
fn query_latency( &self, ) -> Result<(bool, bool, Option<ClockTime>, Option<ClockTime>), BoolError>
Query the sink for the latency parameters. The latency will be queried from
the upstream elements. live
will be true
if self
is configured to
synchronize against the clock. upstream_live
will be true
if an upstream
element is live.
If both live
and upstream_live
are true
, the sink will want to compensate
for the latency introduced by the upstream elements by setting the
min_latency
to a strictly positive value.
This function is mostly used by subclasses.
§Returns
true
if the query succeeded.
§live
if the sink is live
§upstream_live
if an upstream element is live
§min_latency
the min latency of the upstream elements
§max_latency
the max latency of the upstream elements
fn sink_pad(&self) -> &Pad
Object Safety§
This trait is not object safe.