AppSrc.setCallbacks

Set callbacks which will be executed when data is needed, enough data has been collected or when a seek should be performed. 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 AppSrc
void
setCallbacks

Parameters

callbacks GstAppSrcCallbacks*

the callbacks

userData void*

a user_data argument for the callbacks

notify GDestroyNotify

a destroy notify function