Fix AVCaptureSession add input crash.