summaryrefslogtreecommitdiffstats
path: root/services/camera
diff options
context:
space:
mode:
authorIliyan Malchev <malchev@google.com>2011-07-26 15:56:44 -0700
committerIliyan Malchev <malchev@google.com>2011-07-27 10:03:43 -0700
commitf7b3e2e215cde06f375ffb4201c1e0c8ecb2eafb (patch)
tree4c71fe4cf041e13310b4e74c24e13b4142dff12d /services/camera
parent804b3d76c39eca09cbbd8b7c3fa1718e7ad094cc (diff)
downloadframeworks_base-f7b3e2e215cde06f375ffb4201c1e0c8ecb2eafb.zip
frameworks_base-f7b3e2e215cde06f375ffb4201c1e0c8ecb2eafb.tar.gz
frameworks_base-f7b3e2e215cde06f375ffb4201c1e0c8ecb2eafb.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.h5
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;