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

Commit 106ceacb authored by Wei Jia's avatar Wei Jia
Browse files

NuPlayer: reset mAudioEOS and mVideoEOS when renderer is flushed.

Bug: 24749881
Change-Id: I0d3a757262446ac702dfebd464d5e59f1a98eba8
(cherry picked from commit 3261f0db)
parent 780b766d
Loading
Loading
Loading
Loading
+6 −0
Original line number Original line Diff line number Diff line
@@ -1075,6 +1075,12 @@ void NuPlayer::onMessageReceived(const sp<AMessage> &msg) {
                int32_t audio;
                int32_t audio;
                CHECK(msg->findInt32("audio", &audio));
                CHECK(msg->findInt32("audio", &audio));


                if (audio) {
                    mAudioEOS = false;
                } else {
                    mVideoEOS = false;
                }

                ALOGV("renderer %s flush completed.", audio ? "audio" : "video");
                ALOGV("renderer %s flush completed.", audio ? "audio" : "video");
                if (audio && (mFlushingAudio == NONE || mFlushingAudio == FLUSHED
                if (audio && (mFlushingAudio == NONE || mFlushingAudio == FLUSHED
                        || mFlushingAudio == SHUT_DOWN)) {
                        || mFlushingAudio == SHUT_DOWN)) {