summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/Utils.cpp
diff options
context:
space:
mode:
authorsamaga Prasanna Krishna <samaga.krishna@intel.com>2013-12-04 11:49:45 +0530
committerSteve Kondik <steve@cyngn.com>2015-11-30 20:18:11 -0800
commit118bc1d9282358cb203ad1520ab84054a818cde4 (patch)
treef9998be37e25ba90288c4b5b220e74eb1d1c8a3c /media/libstagefright/Utils.cpp
parentee0fd2d8685d96ff9ca328c153a30d4e570ffa01 (diff)
downloadframeworks_av-118bc1d9282358cb203ad1520ab84054a818cde4.zip
frameworks_av-118bc1d9282358cb203ad1520ab84054a818cde4.tar.gz
frameworks_av-118bc1d9282358cb203ad1520ab84054a818cde4.tar.bz2
The progress bar of next song is not properly started in offload use case
The gapless data was not passed to HAL, which in turn to DRV/FW. During start of every song gapless information is passed to DSP to indicate the reset of hardware pointer. This pointer is used in getting the render position. If some files does not have gapless header, this value is not passed to DSP. This causes wrong updation of render position for the next song in the loop mode. This change will update the necessary information to DSP appropriately. Change-Id: I3dc71f6fb38e7067610813503ff60340e7dcb815 Signed-off-by: samaga Prasanna Krishna <samaga.krishna@intel.com> Signed-off-by: Mazhar <mazharx.sameullah@intel.com>
Diffstat (limited to 'media/libstagefright/Utils.cpp')
-rw-r--r--media/libstagefright/Utils.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/media/libstagefright/Utils.cpp b/media/libstagefright/Utils.cpp
index 2aaff6c..3164c9e 100644
--- a/media/libstagefright/Utils.cpp
+++ b/media/libstagefright/Utils.cpp
@@ -764,12 +764,10 @@ status_t sendMetaDataToHal(sp<MediaPlayerBase::AudioSink>& sink,
if (meta->findInt32(kKeyBitRate, &bitRate)) {
param.addInt(String8(AUDIO_OFFLOAD_CODEC_AVG_BIT_RATE), bitRate);
}
- if (meta->findInt32(kKeyEncoderDelay, &delaySamples)) {
- param.addInt(String8(AUDIO_OFFLOAD_CODEC_DELAY_SAMPLES), delaySamples);
- }
- if (meta->findInt32(kKeyEncoderPadding, &paddingSamples)) {
- param.addInt(String8(AUDIO_OFFLOAD_CODEC_PADDING_SAMPLES), paddingSamples);
- }
+ meta->findInt32(kKeyEncoderDelay, &delaySamples);
+ param.addInt(String8(AUDIO_OFFLOAD_CODEC_DELAY_SAMPLES), delaySamples);
+ meta->findInt32(kKeyEncoderPadding, &paddingSamples);
+ param.addInt(String8(AUDIO_OFFLOAD_CODEC_PADDING_SAMPLES), paddingSamples);
AVUtils::get()->sendMetaDataToHal(meta, &param);
ALOGV("sendMetaDataToHal: bitRate %d, sampleRate %d, chanMask %d,"