commit | f8d717772f6d185cb07720cd5091df9b7d612e0b | [log] [tgz] |
---|---|---|
author | Chong Zhang <chz@google.com> | Wed Nov 26 15:08:34 2014 -0800 |
committer | Chong Zhang <chz@google.com> | Mon Dec 01 10:54:55 2014 -0800 |
tree | 290eabe4ea61e269b21df477521c4ac211d4b364 | |
parent | bc0f452b9a76dd8c8244e775bc9c5aa85cae3ddf [diff] [blame] |
notify seek complete upon first video output frame Bug: 18541814 Change-Id: Ie4e0976885f26eb253460eab371cb181ea85f2db
diff --git a/media/libmediaplayerservice/nuplayer/NuPlayerDecoderPassThrough.cpp b/media/libmediaplayerservice/nuplayer/NuPlayerDecoderPassThrough.cpp index 3b4c0a7..8112e9f 100644 --- a/media/libmediaplayerservice/nuplayer/NuPlayerDecoderPassThrough.cpp +++ b/media/libmediaplayerservice/nuplayer/NuPlayerDecoderPassThrough.cpp
@@ -354,8 +354,14 @@ onRequestInputBuffers(); } -void NuPlayer::DecoderPassThrough::onResume() { +void NuPlayer::DecoderPassThrough::onResume(bool notifyComplete) { onRequestInputBuffers(); + + if (notifyComplete) { + sp<AMessage> notify = mNotify->dup(); + notify->setInt32("what", kWhatResumeCompleted); + notify->post(); + } } void NuPlayer::DecoderPassThrough::onFlush(bool notifyComplete) {