Skip to content

Commit

Permalink
CameraDeviceClient: make mPrivilegedClient static
Browse files Browse the repository at this point in the history
Signed-off-by: DennySPb <[email protected]>
Signed-off-by: Anushek Prasal <[email protected]>
Change-Id: Ibecf567a5b385b2c32ddfb08be4748cbb4420aaa
(cherry picked from commit 7586ba018fdfbe598b54a905add0575676d6885b)
  • Loading branch information
DennySPB authored and semdoc committed Aug 10, 2021
1 parent cacfff6 commit d3df4f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions services/camera/libcameraservice/api2/CameraDeviceClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,8 @@ CameraDeviceClient::CameraDeviceClient(const sp<CameraService>& cameraService,
cameraFacing, clientPid, clientUid, servicePid),
mInputStream(),
mStreamingRequestId(REQUEST_ID_NONE),
mRequestIdCounter(0),
mPrivilegedClient(false) {

mRequestIdCounter(0) {
mPrivilegedClient = false;
char value[PROPERTY_VALUE_MAX];
property_get("persist.vendor.camera.privapp.list", value, "");
String16 packagelist(value);
Expand Down
2 changes: 1 addition & 1 deletion services/camera/libcameraservice/api2/CameraDeviceClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ class CameraDeviceClient :
static const int32_t REQUEST_ID_NONE = -1;

int32_t mRequestIdCounter;
bool mPrivilegedClient;
static inline bool mPrivilegedClient;

// The list of output streams whose surfaces are deferred. We have to track them separately
// as there are no surfaces available and can not be put into mStreamMap. Once the deferred
Expand Down

0 comments on commit d3df4f3

Please sign in to comment.