[qtmultimedia] don't stop recording pipeline blindly if we are unloading. Fixes JB#32434

This is an extension to commit c09756
If we set the state to Unloaded then the check in setState() for the busy pipeline
will be missed.
This commit is contained in:
Mohammed Hassan
2015-09-24 17:59:29 +03:00
committed by Martin Jones
parent c6886bc00d
commit 3a328a2ff3

View File

@@ -114,7 +114,7 @@ void CameraBinControl::setState(QCamera::State state)
//special case for stopping the camera while it's busy,
//it should be delayed until the camera is idle
if (state == QCamera::LoadedState &&
if ((state == QCamera::LoadedState || state == QCamera::UnloadedState) &&
m_session->status() == QCamera::ActiveStatus &&
m_session->isBusy()) {
#ifdef CAMEABIN_DEBUG