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

Commit b5c299e3 authored by Dichen Zhang's avatar Dichen Zhang Committed by android-build-team Robot
Browse files

fix bug: release mDisconnectLock when early terminate

Bug: 134995545
Test: described in buganizer comment #2
Change-Id: Ie134e503cd7602a754b57bcc5c1355dea19d4eab
(cherry picked from commit 5dbd5a39e4cee6d5f0207c636f690d204509d7dc)
parent 6ad8dd48
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -389,7 +389,6 @@ void NuPlayer::GenericSource::onPrepareAsync() {
                if (httpSource == NULL) {
                    ALOGE("Failed to create http source!");
                    notifyPreparedAndCleanup(UNKNOWN_ERROR);
                    mDisconnectLock.lock();
                    return;
                }
                mDisconnectLock.lock();
@@ -449,6 +448,7 @@ void NuPlayer::GenericSource::onPrepareAsync() {

        if (mDataSource == NULL) {
            ALOGE("Failed to create data source!");
            mDisconnectLock.unlock();
            notifyPreparedAndCleanup(UNKNOWN_ERROR);
            return;
        }