GstAppSinkCallbacks

A set of callbacks that can be installed on the appsink with gstapp.app_sink.AppSink.setCallbacks.

Members

Variables

GstReserved
void*[2] GstReserved;
eos
void function(GstAppSink* appsink, void* userData) eos;

Called when the end-of-stream has been reached. This callback is called from the streaming thread.

newEvent
bool function(GstAppSink* appsink, void* userData) newEvent;

Called when a new event is available. This callback is called from the streaming thread. The new event can be retrieved with gst_app_sink_pull_event() either from this callback or from any other thread. The callback should return true if the event has been handled, false otherwise.

newPreroll
GstFlowReturn function(GstAppSink* appsink, void* userData) newPreroll;

Called when a new preroll sample is available. This callback is called from the streaming thread. The new preroll sample can be retrieved with gstapp.app_sink.AppSink.pullPreroll either from this callback or from any other thread.

newSample
GstFlowReturn function(GstAppSink* appsink, void* userData) newSample;

Called when a new sample is available. This callback is called from the streaming thread. The new sample can be retrieved with gstapp.app_sink.AppSink.pullSample either from this callback or from any other thread.

proposeAllocation
bool function(GstAppSink* appsink, GstQuery* query, void* userData) proposeAllocation;

Called when the propose_allocation query is available. This callback is called from the streaming thread. The allocation query can be retrieved with gst_app_sink_propose_allocation() either from this callback or from any other thread.