AppSink.setCallbacks

Set callbacks which will be executed for each new preroll, new sample and eos. This is an alternative to using the signals, it has lower overhead and is thus less expensive, but also less flexible.

If callbacks are installed, no signals will be emitted for performance reasons.

class AppSink
void
setCallbacks

Parameters

callbacks GstAppSinkCallbacks*

the callbacks

userData void*

a user_data argument for the callbacks

notify GDestroyNotify

a destroy notify function

Meta