Task.setState

bool setState(gst.types.TaskState state)

Sets the state of task to state.

The task must have a lock associated with it using [gst.task.Task.setLock] when going to GST_TASK_STARTED or GST_TASK_PAUSED or this function will return false.

MT safe.

Parameters

statethe new task state

Returns

true if the state could be changed.