From dc9927d4641066fc966c9c69856167b8410abf90 Mon Sep 17 00:00:00 2001 From: Andreas Huber Date: Mon, 8 Mar 2010 15:46:13 -0800 Subject: 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 --- include/media/stagefright/AudioPlayer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') 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(); -- cgit v1.1