Prevent crash when there is no camera device available
authorAndy Shaw <andy.shaw@digia.com>
Wed, 19 Mar 2014 09:41:46 +0000 (10:41 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 19 Mar 2014 09:56:30 +0000 (10:56 +0100)
commit73de758274f874ad92cd891717a58807a288b4d4
tree07125d7d37293e5acdf9a467a0a0ce091588b4f1
parent4c0e4e15362c65d52b7f0e8f7a9e9576b45010e8
Prevent crash when there is no camera device available

If you try to use QAudioInputSelectorControl with the iOS Simulator then
it would crash as there is no camera device available. This prevents a
crash from happening in that case.

Change-Id: I3904f3d299a11a6df21e66a1138a4319cc0b8a5c
Reviewed-by: Andy Nichols <andy.nichols@digia.com>
src/plugins/avfoundation/camera/avfaudioinputselectorcontrol.mm