Task.setState

Sets the state of @task to @state.

The @task must have a lock associated with it using gst_task_set_lock() when going to GST_TASK_STARTED or GST_TASK_PAUSED or this function will return %FALSE.

MT safe.

class Task
bool
setState

Parameters

state GstTaskState

the new task state

Return: %TRUE if the state could be changed.

Meta