commit | c0767f148e29ce821281b5965c0e25b4c143e76d | [log] [tgz] |
---|---|---|
author | Igor Murashkin <iam@google.com> | Wed Feb 20 19:29:53 2013 -0800 |
committer | Igor Murashkin <iam@google.com> | Fri Feb 22 10:50:15 2013 -0800 |
tree | d71e86b5d066b9a05e1732fa829c40affbb09411 | |
parent | 5494cdc67b541034c963919aef8acb8b665e4dde [diff] [blame] |
Camera: ProCamera - add createStreamCpu and unit test Change-Id: I468172dbfdd78510b273bf9d119c950cbeda7ea3
diff --git a/services/camera/libcameraservice/ProCamera2Client.cpp b/services/camera/libcameraservice/ProCamera2Client.cpp index aa02f10..f850034 100644 --- a/services/camera/libcameraservice/ProCamera2Client.cpp +++ b/services/camera/libcameraservice/ProCamera2Client.cpp
@@ -234,6 +234,13 @@ Mutex::Autolock icl(mIProCameraUserLock); + mDevice->clearStreamingRequest(); + + status_t code; + if ((code = mDevice->waitUntilDrained()) != OK) { + ALOGE("%s: waitUntilDrained failed with code 0x%x", __FUNCTION__, code); + } + return mDevice->deleteStream(streamId); }