BaseSink.queryLatency

bool queryLatency(out bool live, out bool upstreamLive, out gst.types.ClockTime minLatency, out gst.types.ClockTime maxLatency)

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.

Parameters

liveif the sink is live
upstreamLiveif an upstream element is live
minLatencythe min latency of the upstream elements
maxLatencythe max latency of the upstream elements

Returns

true if the query succeeded.