3

I have a problem with this line which is ok in swift 2 but not in swift 3

let videoOutput = AVCaptureVideoDataOutput()

 videoOutput.setSampleBufferDelegate(self, queue: dispatch_queue_create("sample buffer delegate", DISPATCH_QUEUE_SERIAL))

It doesn't work in Swift 3 - error : Cannot convert value of type '()' to expected argument type '__OS_dispatch_queue_attr?

Does anyone know how to fix it ?

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
Bonilla
  • 99
  • 2
  • 11

0 Answers0