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

Commit 4be61cd2 authored by Andy Hung's avatar Andy Hung Committed by Automerger Merge Worker
Browse files

Merge "audio: Fix AudioTrack stuck while interrupting waitStreamEndDone" am: 0384ae1b

Original change: https://android-review.googlesource.com/c/platform/frameworks/av/+/1903464

Change-Id: Ief3f8087c90d55f16dd199eba4976112d069f8a8
parents 5fe851ab 0384ae1b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -353,8 +353,8 @@ void AudioTrack::stopAndJoinCallbacks() {
    // Otherwise the callback thread will never exit.
    stop();
    if (mAudioTrackThread != 0) { // not thread safe
        mProxy->interrupt();
        mAudioTrackThread->requestExit();   // see comment in AudioTrack.h
        mProxy->interrupt();
        mAudioTrackThread->requestExitAndWait();
        mAudioTrackThread.clear();
    }