summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2023-08-09 20:24:25 -0700
committerLinux Build Service Account <lnxbuild@localhost>2023-08-09 20:24:25 -0700
commit4619ec2cb5544cad7aa1f4744497bd0f6f5bc009 (patch)
treee83c972448ae191b26ade559c2d735b65cf3ddcf
parent484b31528d61fa93c8578c37f64e6a8f6c26356b (diff)
parent3ed1f6f307ed5dfbcdb58cabd66e07c5c58e5e24 (diff)
Merge 3ed1f6f307ed5dfbcdb58cabd66e07c5c58e5e24 on remote branch
Change-Id: If7699f60f7f4f46271d34e837a844ccac7df030b
-rw-r--r--media/libmediaplayerservice/StagefrightRecorder.cpp6
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();