GstBase.BaseSinkClass

Fields

Name

Type

Access

Description

activate_pull

object

r

Subclasses should override this when they can provide an alternate method of spawning a thread to drive the pipeline in pull mode. Should start or stop the pulling thread, depending on the value of the “active” argument. Called after actually activating the sink pad in pull mode. The default implementation starts a task on the sink pad.

event

object

r

Override this to handle events arriving on the sink pad

fixate

object

r

Only useful in pull mode. Implement if you have ideas about what should be the default values for the caps you support.

get_caps

object

r

Called to get sink pad caps from the subclass

get_times

object

r

Called to get the start and end times for synchronising the passed buffer to the clock

parent_class

Gst.ElementClass

r

Element parent class

prepare

object

r

Called to prepare the buffer for render and preroll. This function is called before synchronisation is performed.

prepare_list

object

r

Called to prepare the buffer list for render_list. This function is called before synchronisation is performed.

preroll

object

r

Called to present the preroll buffer if desired.

propose_allocation

object

r

configure the allocation query

query

object

r

perform a Gst.Query on the element.

render

object

r

Called when a buffer should be presented or output, at the correct moment if the GstBase.BaseSink has been set to sync to the clock.

render_list

object

r

Same as render but used with buffer lists instead of buffers.

set_caps

object

r

Notify subclass of changed caps

start

object

r

Start processing. Ideal for opening resources in the subclass

stop

object

r

Stop processing. Subclasses should use this to close resources.

unlock

object

r

Unlock any pending access to the resource. Subclasses should unblock any blocked function ASAP and call GstBase.BaseSink.wait_preroll()

unlock_stop

object

r

Clear the previous unlock request. Subclasses should clear any state they set during #GstBaseSinkClass::unlock, and be ready to continue where they left off after GstBase.BaseSink.wait_preroll(), GstBase.BaseSink.wait() or gst_wait_sink_wait_clock() return or #GstBaseSinkClass::render is called again.

wait_event

object

r

Override this to implement custom logic to wait for the event time (for events like EOS and GAP). Subclasses should always first chain up to the default implementation.

Methods

None

Details

class GstBase.BaseSinkClass

Subclasses can override any of the available virtual methods or not, as needed. At the minimum, the render method should be overridden to output/present buffers.