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

Commit ace8947d authored by Eric Laurent's avatar Eric Laurent Committed by Android Git Automerger
Browse files

am d5766875: AwesomePlayer: fix concurrent pause and teardown

* commit 'd5766875':
  AwesomePlayer: fix concurrent pause and teardown
parents 8580679e d5766875
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1225,6 +1225,12 @@ status_t AwesomePlayer::pause() {

status_t AwesomePlayer::pause_l(bool at_eos) {
    if (!(mFlags & PLAYING)) {
        if (mAudioTearDown && mAudioTearDownWasPlaying) {
            ALOGV("pause_l() during teardown and finishSetDataSource_l() mFlags %x" , mFlags);
            mAudioTearDownWasPlaying = false;
            notifyListener_l(MEDIA_PAUSED);
            mMediaRenderingStartGeneration = ++mStartGeneration;
        }
        return OK;
    }