commit | adf34bf9b7925f990259b1b6f4c69b8668f76ead | [log] [tgz] |
---|---|---|
author | Andy Hung <hunga@google.com> | Wed Sep 03 18:22:22 2014 -0700 |
committer | Andy Hung <hunga@google.com> | Thu Sep 04 19:06:56 2014 -0700 |
tree | fc74585a5399a572e44bc8f25717c7d277e6d6be | |
parent | 6a548e9114c4a283a6e08a2d35540f8549f44b82 [diff] [blame] |
NuPlayer: Discard seeks when source and decoders are NULL Problem occurs when loop mode asynchronously seeks to the start of the source after a MediaPlayer::reset(). Bug: 17379148 Change-Id: I50bfe65a753afffb1d478db54c76067a9c61a0ae
diff --git a/media/libmediaplayerservice/nuplayer/NuPlayerDriver.cpp b/media/libmediaplayerservice/nuplayer/NuPlayerDriver.cpp index 2423f5f..09324ae 100644 --- a/media/libmediaplayerservice/nuplayer/NuPlayerDriver.cpp +++ b/media/libmediaplayerservice/nuplayer/NuPlayerDriver.cpp
@@ -626,7 +626,7 @@ switch (msg) { case MEDIA_PLAYBACK_COMPLETE: { - if (mLooping) { + if (mLooping && mState != STATE_RESET_IN_PROGRESS) { mLock.unlock(); mPlayer->seekToAsync(0); mLock.lock();