OSDN Git Service

Fix issue 2363154: Speech synthesis fails to start over A2DP after media server proce...
authorEric Laurent <elaurent@google.com>
Mon, 25 Jan 2010 18:27:15 +0000 (10:27 -0800)
committerEric Laurent <elaurent@google.com>
Mon, 25 Jan 2010 18:27:15 +0000 (10:27 -0800)
commit787aa597d497ffd3019fb64c244a1e944a5f8453
treebcdb86dbebcef6fc6b394ea032091f4220c6e7f5
parent111d0367d75e0bba6558e4464a7662dc95825ba4
Fix issue 2363154: Speech synthesis fails to start over A2DP after media server process crash.

The problem is that after a media_server crash, the value of the A2DP output handle can change.
As this value is cached in AudioSystem for all client processes there can be a mismatch between the cached
and actual value after a media_server restart.

The fix consists in clearing the cached output handles and output to stream map values cached
in AudioSystem in AudioFlingerClient::binderDied() which is called when the media_server crashes.
media/libmedia/AudioSystem.cpp