diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-07-21 10:18:16 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-07-21 10:18:16 +0000 |
commit | c024214c10c961b7ce71be8fddfa561f7187d273 (patch) | |
tree | e83c972448ae191b26ade559c2d735b65cf3ddcf | |
parent | 094a302f4c736ac046a987db53eb3ea20223c045 (diff) | |
parent | e2708a1aa97156e6d78d4bf9b32efdf64a597cea (diff) |
Snap for 10539839 from e2708a1aa97156e6d78d4bf9b32efdf64a597cea to t-keystone-qcom-release
Change-Id: Idb8229524400bcdd07de8db0876ac5ea24ca1b5a
-rw-r--r-- | media/libmediaplayerservice/StagefrightRecorder.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/media/libmediaplayerservice/StagefrightRecorder.cpp b/media/libmediaplayerservice/StagefrightRecorder.cpp index 1651af68fa..f2d88f5932 100644 --- a/media/libmediaplayerservice/StagefrightRecorder.cpp +++ b/media/libmediaplayerservice/StagefrightRecorder.cpp @@ -2471,6 +2471,12 @@ status_t StagefrightRecorder::stop() { (long long)stopTimeUs, source->isVideo() ? "Video" : "Audio"); } } + /* compress recording stop */ + if (mAudioSourceNode != NULL && mEnabledCompressAudioRecording) { + if (OK != mAudioSourceNode->setStopTimeUs(stopTimeUs)) { + ALOGW("Failed to set stopTime %lld us for compress audio source", (long long)stopTimeUs); + } + } if (mVideoEncoderSource != NULL) { mVideoEncoderSource->notifyPerformanceMode(); |