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

Commit eb356463 authored by Dichen Zhang's avatar Dichen Zhang Committed by android-build-merger
Browse files

Merge "fix bug: release mDisconnectLock when early terminate" into qt-dev

am: c5bfbeaf

Change-Id: Ibbf099a48c802f66f16e282c5d7bff8b5d398205
parents a60a6e7b c5bfbeaf
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;
        }