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

Commit 11c2eaab authored by Lajos Molnar's avatar Lajos Molnar Committed by android-build-merger
Browse files

Merge "media: correctly return cached size for MediaDataSource"

am: 6ca2cb49

* commit '6ca2cb49':
  media: correctly return cached size for MediaDataSource
parents 0e29efd1 6ca2cb49
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -116,7 +116,8 @@ status_t JMediaDataSource::getSize(off64_t* size) {
        return UNKNOWN_ERROR;
    }
    if (mSizeIsCached) {
        return mCachedSize;
        *size = mCachedSize;
        return OK;
    }

    JNIEnv* env = AndroidRuntime::getJNIEnv();