GstApp.AppSinkSimpleCallbacks

Fields

None

Methods

class

new ()

ref ()

set_eos (eos_cb, *user_data)

set_new_event (new_event_cb, *user_data)

set_new_preroll (new_preroll_cb, *user_data)

set_new_sample (new_sample_cb, *user_data)

set_propose_allocation (propose_allocation_cb, *user_data)

unref ()

Details

class GstApp.AppSinkSimpleCallbacks

A set of callbacks that can be installed on the appsink with GstApp.AppSink.set_simple_callbacks().

Unlike GstAppSinkCallbacks this can also be used from bindings.

New in version 1.28.

classmethod new()[source]
Returns:

New empty GstApp.AppSinkSimpleCallbacks

Return type:

GstApp.AppSinkSimpleCallbacks

Creates a new instance of callbacks.

New in version 1.28.

ref()[source]
Returns:

the callbacks

Return type:

GstApp.AppSinkSimpleCallbacks

Increases the reference count of self.

New in version 1.28.

set_eos(eos_cb, *user_data)[source]
Parameters:

Sets the EOS callback on self.

Once self is set on an GstApp.AppSink it is not possible anymore to change any of the callbacks inside it.

New in version 1.28.

set_new_event(new_event_cb, *user_data)[source]
Parameters:

Sets the new event callback on self.

Once self is set on an GstApp.AppSink it is not possible anymore to change any of the callbacks inside it.

New in version 1.28.

set_new_preroll(new_preroll_cb, *user_data)[source]
Parameters:

Sets the new preroll callback on self.

Once self is set on an GstApp.AppSink it is not possible anymore to change any of the callbacks inside it.

New in version 1.28.

set_new_sample(new_sample_cb, *user_data)[source]
Parameters:

Sets the new sample callback on self.

Once self is set on an GstApp.AppSink it is not possible anymore to change any of the callbacks inside it.

New in version 1.28.

set_propose_allocation(propose_allocation_cb, *user_data)[source]
Parameters:

Sets the new event callback on self.

Once self is set on an GstApp.AppSink it is not possible anymore to change any of the callbacks inside it.

New in version 1.28.

unref()[source]

Decreases the reference count of self and frees it after the last reference is dropped.

New in version 1.28.