diff options
author | Andreas Huber <andih@google.com> | 2010-03-08 15:46:13 -0800 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2010-03-08 15:46:13 -0800 |
commit | dc9927d4641066fc966c9c69856167b8410abf90 (patch) | |
tree | da1bb32d3a0276e563aeb5409966e5dbaf0fc6b8 /include | |
parent | b3871fad556084932b6d17d07972cd2d8250fb5c (diff) | |
download | frameworks_base-dc9927d4641066fc966c9c69856167b8410abf90.zip frameworks_base-dc9927d4641066fc966c9c69856167b8410abf90.tar.gz frameworks_base-dc9927d4641066fc966c9c69856167b8410abf90.tar.bz2 |
The audio track was accidentally not participating in the prefetch since it wasn't started at the time prepare() was called. Also, properly report the cached duration even near the end when the source has no more data to fetch.
Change-Id: I66a92fec24c9bfb25f1c186f1c877127bae2b4f9
related-to-bug: 2444425
Diffstat (limited to 'include')
-rw-r--r-- | include/media/stagefright/AudioPlayer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/media/stagefright/AudioPlayer.h b/include/media/stagefright/AudioPlayer.h index ea15a5c..9af5871 100644 --- a/include/media/stagefright/AudioPlayer.h +++ b/include/media/stagefright/AudioPlayer.h @@ -44,7 +44,7 @@ public: // Return time in us. virtual int64_t getRealTimeUs(); - status_t start(); + status_t start(bool sourceAlreadyStarted = false); void pause(); void resume(); |