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

Commit c077b0ad authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "GenericSource: fix error handling during preparing or rebuffering"

parents 3d560e51 af136d5c
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -1547,6 +1547,16 @@ void NuPlayer::GenericSource::onPollBuffering() {
            notifyBufferingUpdate(100);
        }

        if (mPreparing) {
            notifyPreparedAndCleanup(finalStatus);
            mPreparing = false;
        } else if (mSentPauseOnBuffering) {
            sendCacheStats();
            mSentPauseOnBuffering = false;
            sp<AMessage> notify = dupNotify();
            notify->setInt32("what", kWhatResumeOnBufferingEnd);
            notify->post();
        }
        return;
    }