CMSampleBufferSetDataReady(_:)
Marks a sample buffer’s data as ready for use.
Declaration
func CMSampleBufferSetDataReady(_ sbuf: CMSampleBuffer) -> OSStatusParameters
- sbuf:
The sample buffer being modified.
Return Value
A result code. See Sample Buffer Error Codes.
Discussion
There’s no way to undo this operation. The only way to get an “unready” CMSampleBuffer is to call CMSampleBufferCreate with the dataReady parameter set to false.