AVFoundation: fix wrong Q_ASSERT.
The assert was always triggered, at least on OSX. Change-Id: I9aabb6103b7f5540cff42facc448ffcf6a6de511 Reviewed-by: Timur Pocheptsov <Timur.Pocheptsov@digia.com>
This commit is contained in:
committed by
Jani Heikkinen
parent
1508f775ac
commit
762bce7a06
@@ -157,7 +157,7 @@ void AVFCameraFlashControl::cameraStateChanged(QCamera::State newState)
|
|||||||
|
|
||||||
bool AVFCameraFlashControl::applyFlashSettings()
|
bool AVFCameraFlashControl::applyFlashSettings()
|
||||||
{
|
{
|
||||||
Q_ASSERT(m_session->state() == QCamera::ActiveState);
|
Q_ASSERT(m_session->requestedState() == QCamera::ActiveState);
|
||||||
|
|
||||||
AVCaptureDevice *captureDevice = m_session->videoCaptureDevice();
|
AVCaptureDevice *captureDevice = m_session->videoCaptureDevice();
|
||||||
if (!captureDevice) {
|
if (!captureDevice) {
|
||||||
|
|||||||
Reference in New Issue
Block a user