Merge "Issue 3395734: fix media server restart detection" into honeycomb

This commit is contained in:
Eric Laurent
2011-02-04 16:30:03 -08:00
committed by Android (Google) Code Review

View File

@@ -1948,7 +1948,7 @@ public class AudioService extends IAudioService.Stub {
// Force creation of new IAudioflinger interface
if (!mMediaServerOk) {
Log.e(TAG, "Media server died.");
AudioSystem.isStreamActive(AudioSystem.STREAM_MUSIC, 0);
AudioSystem.isMicrophoneMuted();
sendMsg(mAudioHandler, MSG_MEDIA_SERVER_DIED, SHARED_MSG, SENDMSG_NOOP, 0, 0,
null, 500);
}