Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 88192404 authored by Sharad Sangle's avatar Sharad Sangle Committed by Steve Kondik
Browse files

libstagefright: Handle INFO_FORMAT_CHANGED for dolby clips

  -For dolby clips when device is switched from headset to
   BT multiple times, media error is observed, and playback
   stops
  -When end device is changed, s/w Dolby decoder generates
   format change event which in certain condition leads to
   media error and playback stops
  -Make sure format change error is handled in AudioPlayer
   layer

CRs-Fixed: 706801

Change-Id: I3ff3ef84b15ea5f9d3288215c1491dc30d17a413
parent 721128fa
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -647,7 +647,7 @@ size_t AudioPlayer::fillBuffer(void *data, size_t size) {

            Mutex::Autolock autoLock(mLock);

            if (err != OK) {
            if (err != OK && err != INFO_FORMAT_CHANGED) {
                if (!mReachedEOS) {
                    if (useOffload()) {
                        // After seek there is a possible race condition if