summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/MediaCodecSource.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'media/libstagefright/MediaCodecSource.cpp')
-rw-r--r--media/libstagefright/MediaCodecSource.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/media/libstagefright/MediaCodecSource.cpp b/media/libstagefright/MediaCodecSource.cpp
index b15ee64..94427ef 100644
--- a/media/libstagefright/MediaCodecSource.cpp
+++ b/media/libstagefright/MediaCodecSource.cpp
@@ -664,11 +664,10 @@ status_t MediaCodecSource::onStart(MetaData *params) {
status_t err = OK;
if (mFlags & FLAG_USE_SURFACE_INPUT) {
- auto key = kKeyTimeBoot;
- char value[PROPERTY_VALUE_MAX];
- if (property_get("media.camera.ts.monotonic", value, "0") &&
- atoi(value)) {
- key = kKeyTime;
+ auto key = kKeyTime;
+ if (property_get_bool("persist.camera.HAL3.enabled", true) &&
+ !property_get_bool("media.camera.ts.monotonic", true)) {
+ key = kKeyTimeBoot;
}
int64_t startTimeUs;