Fix capture stopping

When stopping the camera, the working thread should be stopped before sending
"stop" query to the emulator: we don't want "frame" queries to be floating around
while we're in the process of stopping the camera.

Change-Id: I16dc56ca1c2e304a07a074302001d2e27100f2ac
This commit is contained in:
Vladimir Chtchetkine
2011-09-14 07:06:23 -07:00
parent 16232484c7
commit 4d47360672
5 changed files with 22 additions and 13 deletions

View File

@@ -90,7 +90,6 @@ status_t EmulatedFakeCameraDevice::startDevice()
{
LOGV("%s", __FUNCTION__);
Mutex::Autolock locker(&mObjectLock);
if (!isConnected()) {
LOGE("%s: Fake camera device is not connected.", __FUNCTION__);
return EINVAL;