You can move this to GetCaptureDevice and remove the private field.