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

Commit 9295b214 authored by Phil Burk's avatar Phil Burk Committed by Automerger Merge Worker
Browse files

aaudio: unlock when joining the timestamp thread am: 52efb588

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

Change-Id: I8c06f131165f0169098961a1afb3885bee2a47b5
parents 136ab28f 52efb588
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
@@ -262,7 +262,12 @@ aaudio_result_t AAudioServiceStreamBase::stop_l() {


    setState(AAUDIO_STREAM_STATE_STOPPING);
    setState(AAUDIO_STREAM_STATE_STOPPING);


    // Temporarily unlock because we are joining the timestamp thread and it may try
    // to acquire mLock.
    mLock.unlock();
    result = stopTimestampThread();
    result = stopTimestampThread();
    mLock.lock();

    if (result != AAUDIO_OK) {
    if (result != AAUDIO_OK) {
        disconnect_l();
        disconnect_l();
        return result;
        return result;