Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 086396a9 authored by Eric Laurent's avatar Eric Laurent
Browse files

Issue 3395734: fix media server restart detection

Commit 25101b0b in AudioSystem for issue 3395734 broke the mechanism
in AudioService to poll and detect the restarting of media server
process after a crash.

The fix consists in changing the method used to poll AudioSystem and
trigger a callback indicating success when media server is responding
(the method must be on IAudioFlinger and not IAudioService to trigger the callback).

Change-Id: I843c0194de9cbf82c779cabbf2f3cbf8064603c8
parent b8578741
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1940,7 +1940,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);
                    }