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

Commit a92052b6 authored by Preetam Singh Ranawat's avatar Preetam Singh Ranawat Committed by Steve Kondik
Browse files

NuPlayer : Ignore the INVALID_OPERATION error during resume.

 -Mp3 playback is not using the offload path after resume.
 -NuPlayerRenderer notify the player for offload teardown on
  error during resume.
 -ignore the INVALID_OPERATION error during resume because audio
  track return this error if state is active.

Change-Id: Ifa53e31e2b5d4e09897cf9f5577887e035c22ecb
parent 6e2ed028
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1242,7 +1242,7 @@ void NuPlayer::Renderer::onResume() {
        status_t status = NO_ERROR;
        cancelAudioOffloadPauseTimeout();
        status = mAudioSink->start();
        if (offloadingAudio() && status != NO_ERROR) {
        if (offloadingAudio() && status != NO_ERROR && status != INVALID_OPERATION) {
            ALOGD("received error :%d on resume for offload track posting TEAR_DOWN event",status);
            notifyAudioOffloadTearDown();
        }