One of the recent sample codes from Apple uses same serial queue for receiving samples from AVCaptureVideoDataOutput and AVCaptureAudioDataOutput delegate. I need to know if this is acceptable practice from performance standpoint. Should one have different or single queue for both the sample buffer delegates? Particularly in the setting of multiple camera inputs/outputs, this becomes significant.
private let dataOutputQueue = DispatchQueue(label: "data output queue")
...
...
videoDataOutput.setSampleBufferDelegate(self, queue: dataOutputQueue)
audioDataOutput.setSampleBufferDelegate(self, queue: dataOutputQueue)