set_function


Description:

public void set_function (CollectPadsFunction func)

CollectPads provides a default collection algorithm that will determine the oldest buffer available on all of its pads, and then delegate to a configured callback.

However, if circumstances are more complicated and/or more control is desired, this sets a callback that will be invoked instead when all the pads added to the collection have buffers queued. Evidently, this callback is not compatible with set_buffer_function callback. If this callback is set, the former will be unset.

MT safe.

Parameters:

this

the collectpads to use

func

the function to set

user_data

user data passed to the function