AVFoundation: correctly detect the default audio capture device.
authorYoann Lopes <yoann.lopes@theqtcompany.com>
Tue, 21 Apr 2015 16:49:29 +0000 (18:49 +0200)
committerYoann Lopes <yoann.lopes@theqtcompany.com>
Thu, 23 Apr 2015 12:57:49 +0000 (12:57 +0000)
commitd910b6d63ff0ca74b5af004a83c437fa4db190c0
treefde9a61b97a5558233f5de45c3c898989a1f9526
parent483da26351b6b62a73785b592673bce9577d1a88
AVFoundation: correctly detect the default audio capture device.

Use AVCaptureDevice::defaultDeviceWithMediaType instead of the first
device in the list of available devices.

Change-Id: I436921f99280a28d7158d345cd977a874cfb8968
Reviewed-by: Timur Pocheptsov <Timur.Pocheptsov@digia.com>
Reviewed-by: Christian Stromme <christian.stromme@theqtcompany.com>
src/plugins/avfoundation/camera/avfaudioinputselectorcontrol.h
src/plugins/avfoundation/camera/avfaudioinputselectorcontrol.mm