diff options
author | Wei Jia <wjia@google.com> | 2014-12-04 15:12:13 -0800 |
---|---|---|
committer | Wei Jia <wjia@google.com> | 2014-12-05 16:51:38 -0800 |
commit | 474d7c778b63aa33dcf25a92e23a52c1c47f0ac1 (patch) | |
tree | 4b6553cfc31df91a1c304061113172904d4bd768 /media/libmediaplayerservice/nuplayer/NuPlayerDecoder.cpp | |
parent | 9257000c453c1a6f6bf073ff0bf3ba7ef9baf183 (diff) | |
download | frameworks_av-474d7c778b63aa33dcf25a92e23a52c1c47f0ac1.zip frameworks_av-474d7c778b63aa33dcf25a92e23a52c1c47f0ac1.tar.gz frameworks_av-474d7c778b63aa33dcf25a92e23a52c1c47f0ac1.tar.bz2 |
NuPlayerRenderer: Update mAnchorMaxMediaUs when anchor time is changed to fix pause-seek-getCurrentPosition.
NuPlayerDecoder: Notify resume is done when EOS is reached.
GenericSource: add code to signal pre-roll for seek so that it will seek to the requested position,
not only I-frame. This code is disabled temporarily till we have a full solution to handle both
single seek and continous seek gracefully.
Bug: 18625723
Change-Id: I99a54d4d549e0d805e3abcc227fbf96c16405af0
Diffstat (limited to 'media/libmediaplayerservice/nuplayer/NuPlayerDecoder.cpp')
-rw-r--r-- | media/libmediaplayerservice/nuplayer/NuPlayerDecoder.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/media/libmediaplayerservice/nuplayer/NuPlayerDecoder.cpp b/media/libmediaplayerservice/nuplayer/NuPlayerDecoder.cpp index 6ad28b5..2abd9d6 100644 --- a/media/libmediaplayerservice/nuplayer/NuPlayerDecoder.cpp +++ b/media/libmediaplayerservice/nuplayer/NuPlayerDecoder.cpp @@ -476,6 +476,7 @@ bool NuPlayer::Decoder::handleAnOutputBuffer() { buffer->meta()->setInt64("timeUs", timeUs); if (flags & MediaCodec::BUFFER_FLAG_EOS) { buffer->meta()->setInt32("eos", true); + notifyResumeCompleteIfNecessary(); } // we do not expect CODECCONFIG or SYNCFRAME for decoder |