Element.callAsync

Calls @func from another thread and passes @user_data to it. This is to be used for cases when a state change has to be performed from a streaming thread, directly via gst_element_set_state() or indirectly e.g. via SEEK events.

Calling those functions directly from the streaming thread will cause deadlocks in many situations, as they might involve waiting for the streaming thread to shut down from this very streaming thread.

MT safe.

Parameters

func GstElementCallAsyncFunc

Function to call asynchronously from another thread

userData void*

Data to pass to @func

destroyNotify GDestroyNotify

GDestroyNotify for @user_data

Meta

Since

1.10