CMBufferQueueRemoveTrigger(_:triggerToken:)
Removes a previously installed trigger from a buffer queue.
Declaration
func CMBufferQueueRemoveTrigger(_ queue: CMBufferQueue, triggerToken: CMBufferQueueTriggerToken) -> OSStatusParameters
- queue:
CMBufferQueuefrom which the trigger is to be removed. - triggerToken:
Trigger to remove from the queue.
Return Value
A result code. See Result Codes
Discussion
Triggers will automatically be removed when a queue is finalized. However, if more than one module has access to a queue, it may be hard for an individual module to know when the queue is finalized since other modules may retain it. To address this concern, modules should remove their triggers before they themselves are finalized.