Trait gstreamer::prelude::PipelineExt[][src]

pub trait PipelineExt: 'static {
    fn auto_clock(&self);
fn is_auto_flush_bus(&self) -> bool;
fn delay(&self) -> ClockTime;
fn latency(&self) -> ClockTime;
fn pipeline_clock(&self) -> Clock;
fn set_auto_flush_bus(&self, auto_flush: bool);
fn set_delay(&self, delay: ClockTime);
fn set_latency(&self, latency: ClockTime);
fn use_clock<P: IsA<Clock>>(&self, clock: Option<&P>);
fn connect_auto_flush_bus_notify<F: Fn(&Self) + Send + Sync + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_delay_notify<F: Fn(&Self) + Send + Sync + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_latency_notify<F: Fn(&Self) + Send + Sync + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; }

Trait containing all Pipeline methods.

Implementors

crate::Pipeline

Required methods

fn auto_clock(&self)[src]

Let self select a clock automatically. This is the default behaviour.

Use this function if you previous forced a fixed clock with Self::use_clock() and want to restore the default pipeline clock selection algorithm.

MT safe.

fn is_auto_flush_bus(&self) -> bool[src]

Check if self will automatically flush messages when going to the NULL state.

Returns

whether the pipeline will automatically flush its bus when going from READY to NULL state or not.

MT safe.

fn delay(&self) -> ClockTime[src]

Get the configured delay (see Self::set_delay()).

Returns

The configured delay.

MT safe.

fn latency(&self) -> ClockTime[src]

Gets the latency that should be configured on the pipeline. See Self::set_latency().

Returns

Latency to configure on the pipeline or GST_CLOCK_TIME_NONE

fn pipeline_clock(&self) -> Clock[src]

Gets the current clock used by self.

Unlike [crate::prelude::ElementExt::get_clock()], this function will always return a clock, even if the pipeline is not in the PLAYING state.

Returns

a crate::Clock, unref after usage.

fn set_auto_flush_bus(&self, auto_flush: bool)[src]

Usually, when a pipeline goes from READY to NULL state, it automatically flushes all pending messages on the bus, which is done for refcounting purposes, to break circular references.

This means that applications that update state using (async) bus messages (e.g. do certain things when a pipeline goes from PAUSED to READY) might not get to see messages when the pipeline is shut down, because they might be flushed before they can be dispatched in the main thread. This behaviour can be disabled using this function.

It is important that all messages on the bus are handled when the automatic flushing is disabled else memory leaks will be introduced.

MT safe.

auto_flush

whether or not to automatically flush the bus when the pipeline goes from READY to NULL state

fn set_delay(&self, delay: ClockTime)[src]

Set the expected delay needed for all elements to perform the PAUSED to PLAYING state change. delay will be added to the base time of the elements so that they wait an additional delay amount of time before starting to process buffers and cannot be GST_CLOCK_TIME_NONE.

This option is used for tuning purposes and should normally not be used.

MT safe.

delay

the delay

fn set_latency(&self, latency: ClockTime)[src]

Sets the latency that should be configured on the pipeline. Setting GST_CLOCK_TIME_NONE will restore the default behaviour of using the minimum latency from the LATENCY query. Setting this is usually not required and the pipeline will figure out an appropriate latency automatically.

Setting a too low latency, especially lower than the minimum latency from the LATENCY query, will most likely cause the pipeline to fail.

latency

latency to configure

fn use_clock<P: IsA<Clock>>(&self, clock: Option<&P>)[src]

Force self to use the given clock. The pipeline will always use the given clock even if new clock providers are added to this pipeline.

If clock is None all clocking will be disabled which will make the pipeline run as fast as possible.

MT safe.

clock

the clock to use

fn connect_auto_flush_bus_notify<F: Fn(&Self) + Send + Sync + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

fn connect_delay_notify<F: Fn(&Self) + Send + Sync + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

fn connect_latency_notify<F: Fn(&Self) + Send + Sync + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

Loading content...

Implementors

impl<O: IsA<Pipeline>> PipelineExt for O[src]

fn auto_clock(&self)[src]

fn is_auto_flush_bus(&self) -> bool[src]

fn delay(&self) -> ClockTime[src]

fn latency(&self) -> ClockTime[src]

fn pipeline_clock(&self) -> Clock[src]

fn set_auto_flush_bus(&self, auto_flush: bool)[src]

fn set_delay(&self, delay: ClockTime)[src]

fn set_latency(&self, latency: ClockTime)[src]

fn use_clock<P: IsA<Clock>>(&self, clock: Option<&P>)[src]

fn connect_auto_flush_bus_notify<F: Fn(&Self) + Send + Sync + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

fn connect_delay_notify<F: Fn(&Self) + Send + Sync + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

fn connect_latency_notify<F: Fn(&Self) + Send + Sync + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

Loading content...