diff options
author | Iliyan Malchev <malchev@google.com> | 2011-07-26 15:56:44 -0700 |
---|---|---|
committer | Iliyan Malchev <malchev@google.com> | 2011-07-27 10:03:43 -0700 |
commit | 85fb61eb8b39d4d3fcebc796c3f7ade1d58567aa (patch) | |
tree | 062e10a3423f078c6ee4956c00cee5a1d2c39c37 /services/camera | |
parent | a7280a59259018d997896c043fd2db95f631f12e (diff) | |
download | frameworks_av-85fb61eb8b39d4d3fcebc796c3f7ade1d58567aa.zip frameworks_av-85fb61eb8b39d4d3fcebc796c3f7ade1d58567aa.tar.gz frameworks_av-85fb61eb8b39d4d3fcebc796c3f7ade1d58567aa.tar.bz2 |
libcameraservice: call put_parameters on camera HAL
Change-Id: I492d1034ade50f9e157141debaa9783a90a04a91
Signed-off-by: Iliyan Malchev <malchev@google.com>
Diffstat (limited to 'services/camera')
-rw-r--r-- | services/camera/libcameraservice/CameraHardwareInterface.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/services/camera/libcameraservice/CameraHardwareInterface.h b/services/camera/libcameraservice/CameraHardwareInterface.h index a583aad..09e88c4 100644 --- a/services/camera/libcameraservice/CameraHardwareInterface.h +++ b/services/camera/libcameraservice/CameraHardwareInterface.h @@ -386,7 +386,10 @@ public: if (mDevice->ops->get_parameters) { char *temp = mDevice->ops->get_parameters(mDevice); String8 str_parms(temp); - free(temp); + if (mDevice->ops->put_parameters) + mDevice->ops->put_parameters(mDevice, temp); + else + free(temp); parms.unflatten(str_parms); } return parms; |