Task.setState

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.

class Task
bool
setState

Parameters

state gst.types.TaskState

the new task state

Return Value

Type: bool

true if the state could be changed.