Gst.Task.prototype.set_lock
function set_lock(mutex:GLib.RecMutex):void {
// Gjs wrapper for gst_task_set_lock()
}Set the mutex used by the task. The mutex will be acquired before calling the Gst.TaskFunction.
This function has to be called before calling Gst.Task.prototype.pause or Gst.start.
MT safe.
- mutex
The GLib.RecMutex to use