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

Commit 85b23e26 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: I9e383dc9ffc68e0e417e4a7aaf20d576be838c8c
parents 671bc341 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;
        }