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

Commit 723be42f authored by Wei Jia's avatar Wei Jia Committed by android-build-merger
Browse files

Merge "GenericSource: restore mLock state in error cases" am: bccd73e2

am: f7f5ab99

Change-Id: Ic1fb1183ef2c203eee7f52e35f1c33f3c5cb57e6
parents 58dc71df f7f5ab99
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -171,6 +171,7 @@ status_t NuPlayer::GenericSource::initFromDataSource() {

    if (extractor == NULL) {
        ALOGE("initFromDataSource, cannot create extractor!");
        mLock.lock();
        return UNKNOWN_ERROR;
    }

@@ -179,6 +180,7 @@ status_t NuPlayer::GenericSource::initFromDataSource() {
    size_t numtracks = extractor->countTracks();
    if (numtracks == 0) {
        ALOGE("initFromDataSource, source has no track!");
        mLock.lock();
        return UNKNOWN_ERROR;
    }