commit | 3261f0db54e31e652af9bd3b76a8e85174f5ee87 | [log] [tgz] |
---|---|---|
author | Wei Jia <wjia@google.com> | Thu Oct 08 13:58:33 2015 -0700 |
committer | Wei Jia <wjia@google.com> | Thu Oct 08 14:01:10 2015 -0700 |
tree | 4c6c0938ccf6c0752cff4322b333118bf7b30d79 | |
parent | d008275796ac4cccf85fefce53cef733a49bc1fa [diff] [blame] |
NuPlayer: reset mAudioEOS and mVideoEOS when renderer is flushed. Bug: 24749881 Change-Id: I0d3a757262446ac702dfebd464d5e59f1a98eba8
diff --git a/media/libmediaplayerservice/nuplayer/NuPlayer.cpp b/media/libmediaplayerservice/nuplayer/NuPlayer.cpp index 1f2f8df..8b0ecad 100644 --- a/media/libmediaplayerservice/nuplayer/NuPlayer.cpp +++ b/media/libmediaplayerservice/nuplayer/NuPlayer.cpp
@@ -1086,6 +1086,12 @@ int32_t audio; CHECK(msg->findInt32("audio", &audio)); + if (audio) { + mAudioEOS = false; + } else { + mVideoEOS = false; + } + ALOGV("renderer %s flush completed.", audio ? "audio" : "video"); if (audio && (mFlushingAudio == NONE || mFlushingAudio == FLUSHED || mFlushingAudio == SHUT_DOWN)) {