OSDN Git Service

Camera2: Unconditionally shut down streams on disconnect.
authorEino-Ville Talvala <etalvala@google.com>
Fri, 5 Oct 2012 00:01:25 +0000 (17:01 -0700)
committerAndroid (Google) Code Review <android-gerrit@google.com>
Fri, 5 Oct 2012 23:14:48 +0000 (16:14 -0700)
commitf6e09d200c3e043737adcdadd52310ebbd1b19da
treeffce307ae9ce6dbc4e9b36e0353f48f563818520
parent7373cbe85e617345f7002256a4be389fe62af913
Camera2: Unconditionally shut down streams on disconnect.

stopPreviewL may do nothing in certain states. Stop streams directly
to avoid those failures, so that we always maintain the HAL interface
invariant that streams referenced by in-flight requests are never
deleted.

Bug: 7276954
Change-Id: Ic4cffc43036f4944684d941981a43d6dd1dce7af
services/camera/libcameraservice/Camera2Client.cpp