summaryrefslogtreecommitdiffstats
path: root/media/libmediaplayerservice
diff options
context:
space:
mode:
authorMarco Nelissen <marcone@google.com>2009-11-02 13:52:11 -0800
committerMarco Nelissen <marcone@google.com>2009-11-02 13:55:04 -0800
commit758613de2829f92122d3b684733a5fe815e488c1 (patch)
tree05e0e3e1ffdf2145d97eb8c7a0dcf2f2bb03ff48 /media/libmediaplayerservice
parent9efd523c4611c0cf10e712453a699c083a01064c (diff)
downloadframeworks_base-758613de2829f92122d3b684733a5fe815e488c1.zip
frameworks_base-758613de2829f92122d3b684733a5fe815e488c1.tar.gz
frameworks_base-758613de2829f92122d3b684733a5fe815e488c1.tar.bz2
Make sure the visualization stops immediately when sound stops, instead of continuing for a fraction of a second.
Diffstat (limited to 'media/libmediaplayerservice')
-rw-r--r--media/libmediaplayerservice/MediaPlayerService.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/media/libmediaplayerservice/MediaPlayerService.cpp b/media/libmediaplayerservice/MediaPlayerService.cpp
index 9d2c779..0b75a2b 100644
--- a/media/libmediaplayerservice/MediaPlayerService.cpp
+++ b/media/libmediaplayerservice/MediaPlayerService.cpp
@@ -1509,6 +1509,7 @@ void MediaPlayerService::AudioOutput::pause()
{
LOGV("pause");
if (mTrack) mTrack->pause();
+ lastWriteTime = 0;
}
void MediaPlayerService::AudioOutput::close()