BaseSink.queryLatency

Query the sink for the latency parameters. The latency will be queried from the upstream elements. live will be TRUE if sink 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.

class BaseSink
bool
queryLatency

Parameters

live bool

if the sink is live

upstreamLive bool

if an upstream element is live

minLatency GstClockTime

the min latency of the upstream elements

maxLatency GstClockTime

the max latency of the upstream elements

Return Value

Type: bool

TRUE if the query succeeded.