summaryrefslogtreecommitdiffstats
path: root/media/libmedia/IAudioFlingerClient.cpp
diff options
context:
space:
mode:
authorEric Laurent <>2009-04-01 12:55:13 -0700
committerThe Android Open Source Project <initial-contribution@android.com>2009-04-01 12:55:13 -0700
commitce80c82f58378da72d8a36f520c781cc5cac18a1 (patch)
treefb57dec51bcb78959e95b6e48b6eb610b07a32a8 /media/libmedia/IAudioFlingerClient.cpp
parent8f7f2dcd8b975657e3c33befdaed48fc2966ce34 (diff)
downloadframeworks_av-ce80c82f58378da72d8a36f520c781cc5cac18a1.zip
frameworks_av-ce80c82f58378da72d8a36f520c781cc5cac18a1.tar.gz
frameworks_av-ce80c82f58378da72d8a36f520c781cc5cac18a1.tar.bz2
AI 144054: am: CL 144053 Fix issue #1751242 A2DP playback fails first time: Invalid buffer size: minFrameCount 10240, frameCount 4800
The problem comes from the fact that AudioSystem::getOutputFrameCount() calls getOutput() to retrieve the active output (A2DP or Hardware) before calling get_audio_flinger(). If it is the first time AudioSystem::getOutputFrameCount() is called in a given process, getOutput() will return a wrong value because gA2dpEnabled has not yet been updated by get_audio_flinger(). The fix consists in calling get_audio_flinger() in getOutput() to be sure that gA2dpEnabled is valid when getOutput() reads it. Original author: elaurent Merged from: //branches/cupcake/... Automated import of CL 144054
Diffstat (limited to 'media/libmedia/IAudioFlingerClient.cpp')
0 files changed, 0 insertions, 0 deletions