wait


Description:

public FlowReturn wait (ClockTime time, out ClockTimeDiff jitter)

This function will wait for preroll to complete and will then block until time is reached.

It is usually called by subclasses that use their own internal synchronisation but want to let some synchronization (like EOS) be handled by the base class.

This function should only be called with the PREROLL_LOCK held (like when receiving an EOS event in the ::event vmethod or when handling buffers in ::render).

The time argument should be the running_time of when the timeout should happen and will be adjusted with any latency and offset configured in the sink.

Parameters:

this

the sink

time

the running_time to be reached

jitter

the jitter to be filled with time diff, or null

Returns:

FlowReturn




2022 vala-language.org