aboutsummaryrefslogtreecommitdiff
path: root/camera
diff options
context:
space:
mode:
Diffstat (limited to 'camera')
-rw-r--r--camera/QCamera2/HAL3/QCamera3HWI.cpp2
-rw-r--r--camera/QCamera2/HAL3/QCamera3PostProc.cpp12
2 files changed, 7 insertions, 7 deletions
diff --git a/camera/QCamera2/HAL3/QCamera3HWI.cpp b/camera/QCamera2/HAL3/QCamera3HWI.cpp
index 754a60e..228fee5 100644
--- a/camera/QCamera2/HAL3/QCamera3HWI.cpp
+++ b/camera/QCamera2/HAL3/QCamera3HWI.cpp
@@ -5927,7 +5927,7 @@ void QCamera3HardwareInterface::dumpMetadataToFile(tuning_params_t &meta,
type,
frameNumber);
filePath.append(buf);
- int file_fd = open(filePath.string(), O_RDWR | O_CREAT, 0777);
+ int file_fd = open(filePath.c_str(), O_RDWR | O_CREAT, 0777);
if (file_fd >= 0) {
ssize_t written_len = 0;
meta.tuning_data_version = TUNING_DATA_VERSION;
diff --git a/camera/QCamera2/HAL3/QCamera3PostProc.cpp b/camera/QCamera2/HAL3/QCamera3PostProc.cpp
index be53d4a..6405d76 100644
--- a/camera/QCamera2/HAL3/QCamera3PostProc.cpp
+++ b/camera/QCamera2/HAL3/QCamera3PostProc.cpp
@@ -2625,17 +2625,17 @@ QCamera3Exif *QCamera3PostProcessor::getExifData(metadata_buffer_t *metadata,
rc = getExifDateTime(dateTime, subsecTime);
if (rc == NO_ERROR) {
exif->addEntry(EXIFTAGID_DATE_TIME, EXIF_ASCII,
- (uint32_t)(dateTime.length() + 1), (void *)dateTime.string());
+ (uint32_t)(dateTime.length() + 1), (void *)dateTime.c_str());
exif->addEntry(EXIFTAGID_EXIF_DATE_TIME_ORIGINAL, EXIF_ASCII,
- (uint32_t)(dateTime.length() + 1), (void *)dateTime.string());
+ (uint32_t)(dateTime.length() + 1), (void *)dateTime.c_str());
exif->addEntry(EXIFTAGID_EXIF_DATE_TIME_DIGITIZED, EXIF_ASCII,
- (uint32_t)(dateTime.length() + 1), (void *)dateTime.string());
+ (uint32_t)(dateTime.length() + 1), (void *)dateTime.c_str());
exif->addEntry(EXIFTAGID_SUBSEC_TIME, EXIF_ASCII,
- (uint32_t)(subsecTime.length() + 1), (void *)subsecTime.string());
+ (uint32_t)(subsecTime.length() + 1), (void *)subsecTime.c_str());
exif->addEntry(EXIFTAGID_SUBSEC_TIME_ORIGINAL, EXIF_ASCII,
- (uint32_t)(subsecTime.length() + 1), (void *)subsecTime.string());
+ (uint32_t)(subsecTime.length() + 1), (void *)subsecTime.c_str());
exif->addEntry(EXIFTAGID_SUBSEC_TIME_DIGITIZED, EXIF_ASCII,
- (uint32_t)(subsecTime.length() + 1), (void *)subsecTime.string());
+ (uint32_t)(subsecTime.length() + 1), (void *)subsecTime.c_str());
} else {
LOGW("getExifDateTime failed");
}