summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorVinay Vaka <vvaka@codeaurora.org>2012-05-04 15:36:08 +0530
committerGiulio Cervera <giulio.cervera@gmail.com>2012-06-06 15:27:07 +0200
commit6638822c1121c14519118db0368c20aa59d0100f (patch)
treea9484b75dcdf309ec3cd555aaf4537f8416e7666 /include
parent3e887699b9c6875f6a0940a51976ea8e7a2a7cb7 (diff)
downloadframeworks_base-6638822c1121c14519118db0368c20aa59d0100f.zip
frameworks_base-6638822c1121c14519118db0368c20aa59d0100f.tar.gz
frameworks_base-6638822c1121c14519118db0368c20aa59d0100f.tar.bz2
libstagefirght: Fix for music skip in LPA A2DP case
-Portion of music repeating twice after disconnecting and connecting A2DP -When A2DP disconnects, timeplayed will be updated with the data sent to A2DP. But Decoder thread already has some decoded data which is not sent to A2DP.Here if A2DP connects back decoder thread calls fillbuffer with the time played position. Because of this fillbuffer getting some of the decoded data which is already decoded earlier. -To address this issue when the A2DP disconnect and connect happens clearing all the buffer which are there in response queue. CRs-Fixed: 356571 (cherry picked from commit b52619bdc157646278fce30ceb84057370f030c1) Conflicts: media/libstagefright/LPAPlayer.cpp Change-Id: I98578d4470021757625ad1203682da4bb45cd055
Diffstat (limited to 'include')
-rw-r--r--include/media/stagefright/LPAPlayer.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/media/stagefright/LPAPlayer.h b/include/media/stagefright/LPAPlayer.h
index 70c71f7..2db4b10 100644
--- a/include/media/stagefright/LPAPlayer.h
+++ b/include/media/stagefright/LPAPlayer.h
@@ -88,6 +88,7 @@ private:
bool isPaused;
bool mSeeked;
bool a2dpDisconnectPause;
+ bool a2dpResumeAfterReConnect;
bool a2dpThreadStarted;
volatile bool asyncReset;
bool eventThreadCreated;