OSDN Git Service

Camera2: Make sure to clean out reprocess streams on shutdown as well.
authorEino-Ville Talvala <etalvala@google.com>
Mon, 24 Sep 2012 20:44:07 +0000 (13:44 -0700)
committerEino-Ville Talvala <etalvala@google.com>
Tue, 25 Sep 2012 19:12:40 +0000 (12:12 -0700)
Otherwise, streams may persist past expected lifetime.

Bug: 6243944
Change-Id: I901971b78baf9d577ea3812588dec3885232e7ef

services/camera/libcameraservice/Camera2Device.cpp

index 49f0795..2e4098e 100644 (file)
@@ -145,6 +145,7 @@ status_t Camera2Device::disconnect() {
             ALOGW("%s: Closing camera device %d with %d requests in flight!",
                     __FUNCTION__, mId, inProgressCount);
         }
+        mReprocessStreams.clear();
         mStreams.clear();
         res = mDevice->common.close(&mDevice->common);
         if (res != OK) {