Regarding AVCaptureDevice
lockForConfiguration:
According to document, each time we should acquire a lock when we want to change device configuration.
I wonder if lockForConfiguration
: and unlockForConfiguration
: should always runs in pairs. For example, if I first do lockForConfiguration
: and then do another lockForConfiguration
: without unlockForConfiguration
, I wonder if this way will cause errors ?