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
Loading
Please register or sign in to comment