summaryrefslogtreecommitdiffstats
path: root/media/libmediaplayerservice
diff options
context:
space:
mode:
authorWei Jia <wjia@google.com>2015-10-08 13:58:33 -0700
committerWei Jia <wjia@google.com>2015-10-13 21:47:31 +0000
commit106ceacb404fc580984f882a0c17d61aed3aaf7b (patch)
treeb0d7720ea4360b90100b8c113fca5a1d7a05bf43 /media/libmediaplayerservice
parent780b766d823040e2d015529e5529c83a008442cc (diff)
downloadframeworks_av-106ceacb404fc580984f882a0c17d61aed3aaf7b.zip
frameworks_av-106ceacb404fc580984f882a0c17d61aed3aaf7b.tar.gz
frameworks_av-106ceacb404fc580984f882a0c17d61aed3aaf7b.tar.bz2
NuPlayer: reset mAudioEOS and mVideoEOS when renderer is flushed.
Bug: 24749881 Change-Id: I0d3a757262446ac702dfebd464d5e59f1a98eba8 (cherry picked from commit 3261f0db54e31e652af9bd3b76a8e85174f5ee87)
Diffstat (limited to 'media/libmediaplayerservice')
-rw-r--r--media/libmediaplayerservice/nuplayer/NuPlayer.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/media/libmediaplayerservice/nuplayer/NuPlayer.cpp b/media/libmediaplayerservice/nuplayer/NuPlayer.cpp
index c0146d5..26532d7 100644
--- a/media/libmediaplayerservice/nuplayer/NuPlayer.cpp
+++ b/media/libmediaplayerservice/nuplayer/NuPlayer.cpp
@@ -1075,6 +1075,12 @@ void NuPlayer::onMessageReceived(const sp<AMessage> &msg) {
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)) {