diff options
author | Andreas Huber <andih@google.com> | 2010-10-04 11:36:39 -0700 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2010-10-04 11:36:39 -0700 |
commit | 83977eb230d829cfe520f55d7977037a904ce548 (patch) | |
tree | e22b71a92ede66fbf60655026135ba5a02e10f7a /media/libstagefright/AwesomePlayer.cpp | |
parent | 6954535ba64374e4e941cd83019a7af53edfb098 (diff) | |
download | frameworks_av-83977eb230d829cfe520f55d7977037a904ce548.zip frameworks_av-83977eb230d829cfe520f55d7977037a904ce548.tar.gz frameworks_av-83977eb230d829cfe520f55d7977037a904ce548.tar.bz2 |
Make sure to finish the preparation phase even EOS occurs before we consider the cache to be completely filled up.
Change-Id: I29143e357fb6ea7b860636100e010f2ea7436798
related-to-bug: 3037389
Diffstat (limited to 'media/libstagefright/AwesomePlayer.cpp')
-rw-r--r-- | media/libstagefright/AwesomePlayer.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/media/libstagefright/AwesomePlayer.cpp b/media/libstagefright/AwesomePlayer.cpp index 3975866..040e27d 100644 --- a/media/libstagefright/AwesomePlayer.cpp +++ b/media/libstagefright/AwesomePlayer.cpp @@ -484,6 +484,10 @@ void AwesomePlayer::onBufferingUpdate() { if (eos) { notifyListener_l(MEDIA_BUFFERING_UPDATE, 100); + if (mFlags & PREPARING) { + LOGV("cache has reached EOS, prepare is done."); + finishAsyncPrepare_l(); + } } else { off_t size; if (mDurationUs >= 0 && mCachedSource->getSize(&size) == OK) { |