Merge "Make sure to finish the preparation phase even EOS occurs before we consider the cache to be completely filled up." into gingerbread
This commit is contained in:
committed by
Android (Google) Code Review
commit
aa1a694dc7
@@ -484,6 +484,10 @@ void AwesomePlayer::onBufferingUpdate() {
|
|||||||
|
|
||||||
if (eos) {
|
if (eos) {
|
||||||
notifyListener_l(MEDIA_BUFFERING_UPDATE, 100);
|
notifyListener_l(MEDIA_BUFFERING_UPDATE, 100);
|
||||||
|
if (mFlags & PREPARING) {
|
||||||
|
LOGV("cache has reached EOS, prepare is done.");
|
||||||
|
finishAsyncPrepare_l();
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
off_t size;
|
off_t size;
|
||||||
if (mDurationUs >= 0 && mCachedSource->getSize(&size) == OK) {
|
if (mDurationUs >= 0 && mCachedSource->getSize(&size) == OK) {
|
||||||
|
|||||||
Reference in New Issue
Block a user